Partager via


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

Definition

Returns a Boolean that indicates whether the specified package exists on the instance of SQL Server.

public:
 bool ExistsOnSQLServer(System::String ^ bstrPackagePath, System::String ^ bstrServerName, System::String ^ bstrServerUserName, System::String ^ bstrServerPassword);
[System.Runtime.InteropServices.DispId(15)]
public bool ExistsOnSQLServer (string bstrPackagePath, string bstrServerName, string bstrServerUserName, string bstrServerPassword);
[<System.Runtime.InteropServices.DispId(15)>]
abstract member ExistsOnSQLServer : string * string * string * string -> bool
Public Function ExistsOnSQLServer (bstrPackagePath As String, bstrServerName As String, bstrServerUserName As String, bstrServerPassword As String) As Boolean

Parameters

bstrPackagePath
String

The package you are looking for.

bstrServerName
String

The name of the instance of SQL Server to search for the package.

bstrServerUserName
String

The user name to authenticate against the instance of SQL Server.

bstrServerPassword
String

The password for the specified bstrServerUserName.

Returns

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

Attributes

Applies to