Compartir a través de


IDTSApplication100.LoadFromSQLServer Method

Definition

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

public:
 Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPackage100 ^ LoadFromSQLServer(System::String ^ bstrPackagePath, System::String ^ bstrServerName, System::String ^ bstrServerUserName, System::String ^ bstrServerPassword, bool bLoadNeutral, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSEvents100 ^ pEvents);
[System.Runtime.InteropServices.DispId(14)]
public Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100 LoadFromSQLServer (string bstrPackagePath, string bstrServerName, string bstrServerUserName, string bstrServerPassword, bool bLoadNeutral, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 pEvents);
[<System.Runtime.InteropServices.DispId(14)>]
abstract member LoadFromSQLServer : string * string * string * string * bool * Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 -> Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100
Public Function LoadFromSQLServer (bstrPackagePath As String, bstrServerName As String, bstrServerUserName As String, bstrServerPassword As String, bLoadNeutral As Boolean, pEvents As IDTSEvents100) As IDTSPackage100

Parameters

bstrPackagePath
String

The name and path of the package to load.

bstrServerName
String

The name of the instance of SQL Server that the package is loaded from.

bstrServerUserName
String

The account name used to log on to the server.

bstrServerPassword
String

The password of the account.

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 package that was loaded.

Attributes

Applies to