Compartir a través de


ApplicationClass.SaveToSQLServerAs Método

Esta API admite la infraestructura de SQL Server 2012 y no está prevista su utilización directa desde el código.

Saves a package to an instance of SQL Server with a new name.

Espacio de nombres:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Ensamblado:  Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)

Sintaxis

'Declaración
Public Overridable Sub SaveToSQLServerAs ( _
    pPackage As IDTSPackage100, _
    pEvents As IDTSEvents100, _
    bstrPackagePath As String, _
    bstrServerName As String, _
    bstrServerUserName As String, _
    bstrServerPassword As String _
)
'Uso
Dim instance As ApplicationClass 
Dim pPackage As IDTSPackage100 
Dim pEvents As IDTSEvents100 
Dim bstrPackagePath As String 
Dim bstrServerName As String 
Dim bstrServerUserName As String 
Dim bstrServerPassword As String

instance.SaveToSQLServerAs(pPackage, _
    pEvents, bstrPackagePath, bstrServerName, _
    bstrServerUserName, bstrServerPassword)
public virtual void SaveToSQLServerAs(
    IDTSPackage100 pPackage,
    IDTSEvents100 pEvents,
    string bstrPackagePath,
    string bstrServerName,
    string bstrServerUserName,
    string bstrServerPassword
)
public:
virtual void SaveToSQLServerAs(
    [InAttribute] IDTSPackage100^ pPackage, 
    [InAttribute] IDTSEvents100^ pEvents, 
    [InAttribute] String^ bstrPackagePath, 
    [InAttribute] String^ bstrServerName, 
    [InAttribute] String^ bstrServerUserName, 
    [InAttribute] String^ bstrServerPassword
)
abstract SaveToSQLServerAs : 
        pPackage:IDTSPackage100 * 
        pEvents:IDTSEvents100 * 
        bstrPackagePath:string * 
        bstrServerName:string * 
        bstrServerUserName:string * 
        bstrServerPassword:string -> unit  
override SaveToSQLServerAs : 
        pPackage:IDTSPackage100 * 
        pEvents:IDTSEvents100 * 
        bstrPackagePath:string * 
        bstrServerName:string * 
        bstrServerUserName:string * 
        bstrServerPassword:string -> unit
public function SaveToSQLServerAs(
    pPackage : IDTSPackage100, 
    pEvents : IDTSEvents100, 
    bstrPackagePath : String, 
    bstrServerName : String, 
    bstrServerUserName : String, 
    bstrServerPassword : String
)

Parámetros

  • bstrPackagePath
    Tipo: System.String
    The path and new name to assign to the package.
  • bstrServerName
    Tipo: System.String
    The name of the instance of SQL Server.
  • bstrServerUserName
    Tipo: System.String
    The name of the account used to log on to the instance of SQL Server.
  • bstrServerPassword
    Tipo: System.String
    The password of the user account.

Implementa

IDTSApplication100.SaveToSQLServerAs(IDTSPackage100, IDTSEvents100, String, String, String, String)

Vea también

Referencia

ApplicationClass Clase

Espacio de nombres Microsoft.SqlServer.Dts.Runtime.Wrapper