IDTSApplication100.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:
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);
[System.Runtime.InteropServices.DispId(13)]
public 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
Public 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 IDTSEvents100 interface.
- bstrPackagePath
- String
The path and new name to assign to the package. The parameter bstrPackagePath
is in the format of \folder\packageName. If bstrPackagePath
is specified without an existing folder, the package will be saved with this parameter as its new name.
- 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.
- Attributes