Udostępnij za pośrednictwem


Metoda StorageInfo.NewSqlStorage

Creates a new Microsoft SQL Server database in which the original or the upgraded Integration Services packages will be stored.

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Runtime
Zestaw:  Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)

Składnia

'Deklaracja
Public Shared Function NewSqlStorage ( _
    host As String, _
    username As String, _
    password As String _
) As StorageInfo
'Użycie
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

Parametry

  • host
    Typ: System.String
    Nazwa serwera, na którym przechowywane są opakowania.
  • username
    Typ: System.String
    Nazwa użytkownika SQL Server uwierzytelniania wymaga nawiązania połączenia z bazą danych.
  • password
    Typ: System.String
    The string passwordthat SQL Server Authentication requires to connect to the database.

Wartość zwracana

Typ: Microsoft.SqlServer.Dts.Runtime.StorageInfo
A StorageInfo obiekt, który określa SQL Server bazy danych.

Uwagi

Jeśli username parametr nie jest zestaw, Integration Services uwierzytelniania systemu Windows do łączenia się z serwerem.

Jeśli username ustawiono parametr password parametr musi być zestaw.