ApplicationClass.LoadFromSQLServer 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过指定服务器名称、用户名和密码从 SQL Server 加载包。
public:
virtual 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) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication130::LoadFromSQLServer;
public:
virtual 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) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication150::LoadFromSQLServer;
[System.Runtime.InteropServices.DispId(14)]
public virtual 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
override this.LoadFromSQLServer : string * string * string * string * bool * Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 -> Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100
Public Overridable Function LoadFromSQLServer (bstrPackagePath As String, bstrServerName As String, bstrServerUserName As String, bstrServerPassword As String, bLoadNeutral As Boolean, pEvents As IDTSEvents100) As IDTSPackage100
参数
- bstrPackagePath
- String
要加载的包的名称和路径。
- bstrServerName
- String
从中加载包的 SQL Server 实例的名称。
- bstrServerUserName
- String
用于登录到服务器的帐户名。
- bstrServerPassword
- String
帐户的密码。
- bLoadNeutral
- Boolean
若要将包加载为中性线程,则为 true。 如果加载包作为单元线程,则为 false。
- pEvents
- IDTSEvents100
IDTSEvents 接口。
返回
所加载的包。
实现
- 属性