![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How do I determine whether or not a specific DTS Package (I know the name of the package) exists on the Server? Thanks for your help, - Joe Geretz - |
#3
| |||
| |||
|
|
How do I determine whether or not a specific DTS Package (I know the name of the package) exists on the Server? Thanks for your help, - Joe Geretz - |
#4
| |||
| |||
|
|
Open the Data Transformation Services folder in EM, and check within "Local Packages" and "Meta Data Services" packages. A DTS Package can also be saved as a structured storage file on the hard disk. You can also query msdb USE msdb GO SELECT DISTINCT Name FROM sysdtspackages ORDER BY Name Simon Worth Joseph Geretz wrote: How do I determine whether or not a specific DTS Package (I know the name of the package) exists on the Server? Thanks for your help, - Joe Geretz - |
#5
| |||
| |||
|
|
Thanks Francesco and Simon for your help. I actually opted for a third approach, using the DTS object model. I'm posting the code below, perhaps others will find this useful. - Joe Geretz - Public Function PackageExists(DBConnect As String, Package As String) As Boolean Dim SQLServer As String Dim SQLUID As String Dim SQLPWD As String Dim DTSPkg As DTS.Package2 On Error GoTo ErrHandle Set DTSPkg = New DTS.Package2 zGetDBCredentials DBConnect, SQLServer, SQLUID, SQLPWD DTSPkg.LoadFromSQLServer SQLServer, _ SQLUID, _ SQLPWD, _ , _ , _ , _ , _ Package PackageExists = True Exit Function ErrHandle: PackageExists = False End Function "Simon Worth" <REMOVEFIRST_simon.worth (AT) gmail (DOT) com> wrote in message news:uDG3zP9KFHA.1176 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Open the Data Transformation Services folder in EM, and check within "Local Packages" and "Meta Data Services" packages. A DTS Package can also be saved as a structured storage file on the hard disk. You can also query msdb USE msdb GO SELECT DISTINCT Name FROM sysdtspackages ORDER BY Name Simon Worth Joseph Geretz wrote: How do I determine whether or not a specific DTS Package (I know the name of the package) exists on the Server? Thanks for your help, - Joe Geretz - |
![]() |
| Thread Tools | |
| Display Modes | |
| |