Метод IDTSApplication100.ExistsOnSQLServer
Этот API-интерфейс поддерживает инфраструктуру SQL Server 2012 и не предназначен для использования непосредственно из кода.
Returns a Boolean that indicates whether the specified package exists on the instance of SQL Server.
Пространство имен: Microsoft.SqlServer.Dts.Runtime.Wrapper
Сборка: Microsoft.SqlServer.DTSRuntimeWrap (в Microsoft.SqlServer.DTSRuntimeWrap.dll)
Синтаксис
'Декларация
Function ExistsOnSQLServer ( _
bstrPackagePath As String, _
bstrServerName As String, _
bstrServerUserName As String, _
bstrServerPassword As String _
) As Boolean
'Применение
Dim instance As IDTSApplication100
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)
bool ExistsOnSQLServer(
string bstrPackagePath,
string bstrServerName,
string bstrServerUserName,
string bstrServerPassword
)
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
function ExistsOnSQLServer(
bstrPackagePath : String,
bstrServerName : String,
bstrServerUserName : String,
bstrServerPassword : String
) : boolean
Параметры
- bstrPackagePath
Тип: System.String
The package you are looking for.
- bstrServerName
Тип: System.String
The name of the instance of SQL Server to search for the package.
- bstrServerUserName
Тип: System.String
The user name to authenticate against the instance of SQL Server.
- bstrServerPassword
Тип: System.String
The password for the specified bstrServerUserName.
Возвращаемое значение
Тип: System.Boolean
true if the package exists on the specified instance of SQL Server. false if the package does not exist.