Partager via


Méthode ApplicationClass.ExistsOnSQLServer

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

Indicates whether the specified package exists on the instance of SQL Server.

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

Syntaxe

'Déclaration
Public Overridable Function ExistsOnSQLServer ( _
    bstrPackagePath As String, _
    bstrServerName As String, _
    bstrServerUserName As String, _
    bstrServerPassword As String _
) As Boolean
'Utilisation
Dim instance As ApplicationClass 
Dim bstrPackagePath As String 
Dim bstrServerName As String 
Dim bstrServerUserName As String 
Dim bstrServerPassword As String 
Dim returnValue As Boolean 

returnValue = instance.ExistsOnSQLServer(bstrPackagePath, _
    bstrServerName, bstrServerUserName, _
    bstrServerPassword)
public virtual bool ExistsOnSQLServer(
    string bstrPackagePath,
    string bstrServerName,
    string bstrServerUserName,
    string bstrServerPassword
)
public:
virtual bool ExistsOnSQLServer(
    [InAttribute] String^ bstrPackagePath, 
    [InAttribute] String^ bstrServerName, 
    [InAttribute] String^ bstrServerUserName, 
    [InAttribute] String^ bstrServerPassword
)
abstract ExistsOnSQLServer : 
        bstrPackagePath:string * 
        bstrServerName:string * 
        bstrServerUserName:string * 
        bstrServerPassword:string -> bool  
override ExistsOnSQLServer : 
        bstrPackagePath:string * 
        bstrServerName:string * 
        bstrServerUserName:string * 
        bstrServerPassword:string -> bool
public function ExistsOnSQLServer(
    bstrPackagePath : String, 
    bstrServerName : String, 
    bstrServerUserName : String, 
    bstrServerPassword : String
) : boolean

Paramètres

  • bstrPackagePath
    Type : System.String
    The package you are looking for.
  • bstrServerName
    Type : System.String
    The name of the instance of SQL Server to search for the package.
  • bstrServerUserName
    Type : System.String
    The user name to authenticate against the instance of SQL Server.
  • bstrServerPassword
    Type : System.String
    The password for the specified bstrServerUserName.

Valeur de retour

Type : System.Boolean
true if the package exists on the specified instance of SQL Server. false if the package does not exist

Implémente

IDTSApplication100.ExistsOnSQLServer(String, String, String, String)

Voir aussi

Référence

ApplicationClass Classe

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