Share via


IDTSApplication100.LoadFromSQLServer2 Method

Definition

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

public:
 Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPackage100 ^ LoadFromSQLServer2(System::String ^ bstrPackagePath, System::Object ^ vConnectionObject, bool bLoadNeutral, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSEvents100 ^ pEvents);
[System.Runtime.InteropServices.DispId(62)]
public Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100 LoadFromSQLServer2 (string bstrPackagePath, object vConnectionObject, bool bLoadNeutral, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 pEvents);
[<System.Runtime.InteropServices.DispId(62)>]
abstract member LoadFromSQLServer2 : string * obj * bool * Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 -> Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100
Public Function LoadFromSQLServer2 (bstrPackagePath As String, vConnectionObject As Object, bLoadNeutral As Boolean, pEvents As IDTSEvents100) As IDTSPackage100

Parameters

bstrPackagePath
String

The name and path of the package to load.

vConnectionObject
Object

The connection object.

bLoadNeutral
Boolean

true to load the package as neutral threaded; false to load the package as apartment threaded.

pEvents
IDTSEvents100

An IDTSEvents100 interface.

Returns

The loaded package.

Attributes

Applies to