Application.LoadFromSqlServer2(String, Object, IDTSEvents) Method

Definition

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

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

Parameters

packagePath
String

The name and path of the package to load.

connectionObject
Object

The connection object.

events
IDTSEvents

An IDTSEvents interface.

Returns

The loaded package.

Applies to