ApplicationClass.SaveToSQLServerAs Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves a package to an instance of SQL Server with a new name.
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)
Parameters
- pPackage
- IDTSPackage100
The package to save.
- pEvents
- IDTSEvents100
An IDTSEvents object.
- bstrPackagePath
- String
The path and new name to assign to the package.
- bstrServerName
- String
The name of the instance of SQL Server.
- bstrServerUserName
- String
The name of the account used to log on to the instance of SQL Server.
- bstrServerPassword
- String
The password of the user account.
Implements
- Attributes