Método Application.LoadFromSqlServer2
Essa API oferece suporte à infraestrutura do SQL Server 2012 e não se destina a ser usada diretamente no seu código.
Loads a package from SQL Server by specifying the server name, user name, and password.
Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (em Microsoft.SqlServer.ManagedDTS.dll)
Sintaxe
'Declaração
Public Function LoadFromSqlServer2 ( _
packagePath As String, _
connectionObject As Object, _
events As IDTSEvents _
) As Package
'Uso
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
Parâmetros
- packagePath
Tipo: System.String
The name and path of the package to load.
- connectionObject
Tipo: System.Object
The connection object.
- events
Tipo: Microsoft.SqlServer.Dts.Runtime.IDTSEvents
An IDTSEvents interface.
Valor de retorno
Tipo: Microsoft.SqlServer.Dts.Runtime.Package
The loaded package.