Partager via


Méthode IDTSApplication100.ExistsOnDtsServer

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

Returns a Boolean that indicates whether the specified package already exists on the Integration Services service.

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly :  Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntaxe

'Déclaration
Function ExistsOnDtsServer ( _
    bstrPackagePath As String, _
    bstrServerName As String _
) As Boolean
'Utilisation
Dim instance As IDTSApplication100 
Dim bstrPackagePath As String 
Dim bstrServerName As String 
Dim returnValue As Boolean 

returnValue = instance.ExistsOnDtsServer(bstrPackagePath, _
    bstrServerName)
bool ExistsOnDtsServer(
    string bstrPackagePath,
    string bstrServerName
)
bool ExistsOnDtsServer(
    [InAttribute] String^ bstrPackagePath, 
    [InAttribute] String^ bstrServerName
)
abstract ExistsOnDtsServer : 
        bstrPackagePath:string * 
        bstrServerName:string -> bool
function ExistsOnDtsServer(
    bstrPackagePath : String, 
    bstrServerName : String
) : boolean

Paramètres

  • bstrPackagePath
    Type : System.String
    The fully qualified path of the package.
  • bstrServerName
    Type : System.String
    The name of the server to search for the package.

Valeur de retour

Type : System.Boolean
true if the package specified by bstrPackagePath exists on the server named by bstrServerName; otherwise, false.

Voir aussi

Référence

IDTSApplication100 Interface

Espace de noms Microsoft.SqlServer.Dts.Runtime.Wrapper