Метод Application.LoadFromSqlServer2
Этот API-интерфейс поддерживает инфраструктуру SQL Server 2012 и не предназначен для использования непосредственно из кода.
Loads a package from SQL Server by specifying the server name, user name, and password.
Пространство имен: Microsoft.SqlServer.Dts.Runtime
Сборка: Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)
Синтаксис
'Декларация
Public Function LoadFromSqlServer2 ( _
packagePath As String, _
connectionObject As Object, _
events As IDTSEvents _
) As Package
'Применение
Dim instance As Application
Dim packagePath As String
Dim connectionObject As Object
Dim events As IDTSEvents
Dim returnValue As Package
returnValue = instance.LoadFromSqlServer2(packagePath, _
connectionObject, events)
public Package LoadFromSqlServer2(
string packagePath,
Object connectionObject,
IDTSEvents events
)
public:
Package^ LoadFromSqlServer2(
String^ packagePath,
Object^ connectionObject,
IDTSEvents^ events
)
member LoadFromSqlServer2 :
packagePath:string *
connectionObject:Object *
events:IDTSEvents -> Package
public function LoadFromSqlServer2(
packagePath : String,
connectionObject : Object,
events : IDTSEvents
) : Package
Параметры
- packagePath
Тип: System.String
The name and path of the package to load.
- connectionObject
Тип: System.Object
The connection object.
- events
Тип: Microsoft.SqlServer.Dts.Runtime.IDTSEvents
An IDTSEvents interface.
Возвращаемое значение
Тип: Microsoft.SqlServer.Dts.Runtime.Package
The loaded package.