Application.LoadFromSqlServer2(String, Object, IDTSEvents) 方法

定义

通过指定服务器名称、用户名和密码从 SQL Server 加载包。

public:
 Microsoft::SqlServer::Dts::Runtime::Package ^ LoadFromSqlServer2(System::String ^ packagePath, System::Object ^ connectionObject, Microsoft::SqlServer::Dts::Runtime::IDTSEvents ^ events);
public Microsoft.SqlServer.Dts.Runtime.Package LoadFromSqlServer2 (string packagePath, object connectionObject, Microsoft.SqlServer.Dts.Runtime.IDTSEvents events);
member this.LoadFromSqlServer2 : string * obj * Microsoft.SqlServer.Dts.Runtime.IDTSEvents -> Microsoft.SqlServer.Dts.Runtime.Package
Public Function LoadFromSqlServer2 (packagePath As String, connectionObject As Object, events As IDTSEvents) As Package

参数

packagePath
String

要加载的包的名称和路径。

connectionObject
Object

连接对象。

events
IDTSEvents

一个 IDTSEvents 接口。

返回

加载的包。

适用于