语言

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

实现

属性

适用于