NewSqlStorage 方法
建立儲存原始或升級 Integration Services 封裝所在的 MicrosoftSQL Server 資料庫。
命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)
語法
'宣告
Public Shared Function NewSqlStorage ( _
host As String, _
username As String, _
password As String _
) As StorageInfo
'用途
Dim host As String
Dim username As String
Dim password As String
Dim returnValue As StorageInfo
returnValue = StorageInfo.NewSqlStorage(host, _
username, password)
public static StorageInfo NewSqlStorage(
string host,
string username,
string password
)
public:
static StorageInfo^ NewSqlStorage(
String^ host,
String^ username,
String^ password
)
static member NewSqlStorage :
host:string *
username:string *
password:string -> StorageInfo
public static function NewSqlStorage(
host : String,
username : String,
password : String
) : StorageInfo
參數
- host
型別:System. . :: . .String
儲存封裝的伺服器名稱。
- username
型別:System. . :: . .String
SQL Server 驗證連接資料庫所需的使用者名稱。
- password
型別:System. . :: . .String
SQL Server 驗證連接資料庫所需的字串密碼。
傳回值
型別:Microsoft.SqlServer.Dts.Runtime. . :: . .StorageInfo
指定 SQL Server 資料庫的 StorageInfo 物件。
備註
如果沒有設定 username 參數,Integration Services 會使用 Windows 驗證連接至伺服器。
如果設定了 username 參數,則必須設定 password 參數。