Partager via


Méthode IDTSApplication100.SaveToSQLServer

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

Saves a package to an instance of SQL Server.

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly :  Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntaxe

'Déclaration
Sub SaveToSQLServer ( _
    Package As IDTSPackage100, _
    pEvents As IDTSEvents100, _
    ServerName As String, _
    ServerUserName As String, _
    ServerPassword As String _
)
'Utilisation
Dim instance As IDTSApplication100 
Dim Package As IDTSPackage100 
Dim pEvents As IDTSEvents100 
Dim ServerName As String 
Dim ServerUserName As String 
Dim ServerPassword As String

instance.SaveToSQLServer(Package, pEvents, _
    ServerName, ServerUserName, ServerPassword)
void SaveToSQLServer(
    IDTSPackage100 Package,
    IDTSEvents100 pEvents,
    string ServerName,
    string ServerUserName,
    string ServerPassword
)
void SaveToSQLServer(
    [InAttribute] IDTSPackage100^ Package, 
    [InAttribute] IDTSEvents100^ pEvents, 
    [InAttribute] String^ ServerName, 
    [InAttribute] String^ ServerUserName, 
    [InAttribute] String^ ServerPassword
)
abstract SaveToSQLServer : 
        Package:IDTSPackage100 * 
        pEvents:IDTSEvents100 * 
        ServerName:string * 
        ServerUserName:string * 
        ServerPassword:string -> unit
function SaveToSQLServer(
    Package : IDTSPackage100, 
    pEvents : IDTSEvents100, 
    ServerName : String, 
    ServerUserName : String, 
    ServerPassword : String
)

Paramètres

  • ServerName
    Type : System.String
    The name of the instance of SQL Server to save the package to.
  • ServerUserName
    Type : System.String
    The user name used to log on to the server.
  • ServerPassword
    Type : System.String
    The password for the user account.

Voir aussi

Référence

IDTSApplication100 Interface

Espace de noms Microsoft.SqlServer.Dts.Runtime.Wrapper