다음을 통해 공유


ApplicationClass.ExistsOnSQLServer 메서드

이 API는 SQL Server 2012 인프라를 지원하기 위한 것으로 코드에서 직접 사용할 수 없습니다.

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

네임스페이스:  Microsoft.SqlServer.Dts.Runtime.Wrapper
어셈블리:  Microsoft.SqlServer.DTSRuntimeWrap(Microsoft.SqlServer.DTSRuntimeWrap.dll)

구문

‘선언
Public Overridable Function ExistsOnSQLServer ( _
    bstrPackagePath As String, _
    bstrServerName As String, _
    bstrServerUserName As String, _
    bstrServerPassword As String _
) As Boolean
‘사용 방법
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

매개 변수

  • 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

구현

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

참고 항목

참조

ApplicationClass 클래스

Microsoft.SqlServer.Dts.Runtime.Wrapper 네임스페이스