Partager via


ApplicationClass.SaveToSQLServerAs Méthode

Définition

Enregistre un package dans une instance de SQL Server sous un nouveau nom.

public:
 virtual void SaveToSQLServerAs(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPackage100 ^ pPackage, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSEvents100 ^ pEvents, System::String ^ bstrPackagePath, System::String ^ bstrServerName, System::String ^ bstrServerUserName, System::String ^ bstrServerPassword) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication130::SaveToSQLServerAs;
public:
 virtual void SaveToSQLServerAs(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPackage100 ^ pPackage, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSEvents100 ^ pEvents, System::String ^ bstrPackagePath, System::String ^ bstrServerName, System::String ^ bstrServerUserName, System::String ^ bstrServerPassword) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication150::SaveToSQLServerAs;
[System.Runtime.InteropServices.DispId(13)]
public virtual void SaveToSQLServerAs (Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100 pPackage, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 pEvents, string bstrPackagePath, string bstrServerName, string bstrServerUserName, string bstrServerPassword);
[<System.Runtime.InteropServices.DispId(13)>]
abstract member SaveToSQLServerAs : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100 * Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 * string * string * string * string -> unit
override this.SaveToSQLServerAs : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100 * Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 * string * string * string * string -> unit
Public Overridable Sub SaveToSQLServerAs (pPackage As IDTSPackage100, pEvents As IDTSEvents100, bstrPackagePath As String, bstrServerName As String, bstrServerUserName As String, bstrServerPassword As String)

Paramètres

pPackage
IDTSPackage100

Package à enregistrer.

pEvents
IDTSEvents100

Objet IDTSEvents.

bstrPackagePath
String

Chemin d'accès et nouveau nom à attribuer au package.

bstrServerName
String

Nom de l'instance de SQL Server.

bstrServerUserName
String

Nom du compte utilisé pour se connecter à l'instance de SQL Server.

bstrServerPassword
String

Mot de passe du compte d'utilisateur.

Implémente

Attributs

S’applique à