EmbedPackage 方法 (String, String, String, Int32, Boolean, String, String, String, String)
Embeds the package inside of the Exec80PackageTask.
命名空间: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
程序集: Microsoft.SqlServer.Exec80PackageTask(在 Microsoft.SqlServer.Exec80PackageTask.dll 中)
语法
声明
Public Function EmbedPackage ( _
Filename As String, _
sourceUser As String, _
sourcePassword As String, _
SourceType As Integer, _
bUseTrustedConnection As Boolean, _
PackageName As String, _
PackagePassword As String, _
PackageID As String, _
PackageVersionGUID As String _
) As Package
用法
Dim instance As Exec80PackageTask
Dim Filename As String
Dim sourceUser As String
Dim sourcePassword As String
Dim SourceType As Integer
Dim bUseTrustedConnection As Boolean
Dim PackageName As String
Dim PackagePassword As String
Dim PackageID As String
Dim PackageVersionGUID As String
Dim returnValue As Package
returnValue = instance.EmbedPackage(Filename, _
sourceUser, sourcePassword, SourceType, _
bUseTrustedConnection, PackageName, _
PackagePassword, PackageID, PackageVersionGUID)
public Package EmbedPackage(
string Filename,
string sourceUser,
string sourcePassword,
int SourceType,
bool bUseTrustedConnection,
string PackageName,
string PackagePassword,
string PackageID,
string PackageVersionGUID
)
public:
Package^ EmbedPackage(
String^ Filename,
String^ sourceUser,
String^ sourcePassword,
int SourceType,
bool bUseTrustedConnection,
String^ PackageName,
String^ PackagePassword,
String^ PackageID,
String^ PackageVersionGUID
)
member EmbedPackage :
Filename:string *
sourceUser:string *
sourcePassword:string *
SourceType:int *
bUseTrustedConnection:bool *
PackageName:string *
PackagePassword:string *
PackageID:string *
PackageVersionGUID:string -> Package
public function EmbedPackage(
Filename : String,
sourceUser : String,
sourcePassword : String,
SourceType : int,
bUseTrustedConnection : boolean,
PackageName : String,
PackagePassword : String,
PackageID : String,
PackageVersionGUID : String
) : Package
参数
- Filename
类型:System. . :: . .String
The name of the file.
- sourceUser
类型:System. . :: . .String
The uername to use for the SQL Server.
- sourcePassword
类型:System. . :: . .String
If the SQL Server 2000 DTS package is password protected, provide the password.
- SourceType
类型:System. . :: . .Int32
One of the values from the Exec80PackageTask..::..Locations enumeration indicating the location of the package.
- bUseTrustedConnection
类型:System. . :: . .Boolean
true indicates that Windows Authentication is used.
- PackageName
类型:System. . :: . .String
The name of the package.
- PackagePassword
类型:System. . :: . .String
The package password if it has a password on it.
- PackageID
类型:System. . :: . .String
The unique identifier of the package.
- PackageVersionGUID
类型:System. . :: . .String
The identifier for the package version.
返回值
类型:Package
A Package object.