共用方式為


Application.LoadFromSqlServer2 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Loads a package from SQL Server by specifying the server name, user name, and password.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public Function LoadFromSqlServer2 ( _
    packagePath As String, _
    connectionObject As Object, _
    events As IDTSEvents _
) As Package
'用途
Dim instance As Application 
Dim packagePath As String 
Dim connectionObject As Object 
Dim events As IDTSEvents 
Dim returnValue As Package 

returnValue = instance.LoadFromSqlServer2(packagePath, _
    connectionObject, events)
public Package LoadFromSqlServer2(
    string packagePath,
    Object connectionObject,
    IDTSEvents events
)
public:
Package^ LoadFromSqlServer2(
    String^ packagePath, 
    Object^ connectionObject, 
    IDTSEvents^ events
)
member LoadFromSqlServer2 : 
        packagePath:string * 
        connectionObject:Object * 
        events:IDTSEvents -> Package
public function LoadFromSqlServer2(
    packagePath : String, 
    connectionObject : Object, 
    events : IDTSEvents
) : Package

參數

  • packagePath
    型別:System.String
    The name and path of the package to load.

傳回值

型別:Microsoft.SqlServer.Dts.Runtime.Package
The loaded package.

請參閱

參考

Application 類別

Microsoft.SqlServer.Dts.Runtime 命名空間