ApplicationClass.ExistsOnSQLServer(String, String, String, String) 方法

定义

指示指定的包在 SQL Server 实例上是否存在。

public:
 virtual bool ExistsOnSQLServer(System::String ^ bstrPackagePath, System::String ^ bstrServerName, System::String ^ bstrServerUserName, System::String ^ bstrServerPassword) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication130::ExistsOnSQLServer;
public:
 virtual bool ExistsOnSQLServer(System::String ^ bstrPackagePath, System::String ^ bstrServerName, System::String ^ bstrServerUserName, System::String ^ bstrServerPassword) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication150::ExistsOnSQLServer;
[System.Runtime.InteropServices.DispId(15)]
public virtual bool ExistsOnSQLServer (string bstrPackagePath, string bstrServerName, string bstrServerUserName, string bstrServerPassword);
[<System.Runtime.InteropServices.DispId(15)>]
abstract member ExistsOnSQLServer : string * string * string * string -> bool
override this.ExistsOnSQLServer : string * string * string * string -> bool
Public Overridable Function ExistsOnSQLServer (bstrPackagePath As String, bstrServerName As String, bstrServerUserName As String, bstrServerPassword As String) As Boolean

参数

bstrPackagePath
String

您所查找的包:

bstrServerName
String

要搜索该包的 SQL Server 实例的名称。

bstrServerUserName
String

用于对 SQL Server 的实例进行身份验证的用户名。

bstrServerPassword
String

指定的 bstrServerUserName 的密码。

返回

如果包存在于SQL Server的指定实例上,则为 true。 如果包不存在,则为 false

实现

属性

适用于