Partager via


Méthode StorageInfo.NewSqlStorage

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

Espace de noms :  Microsoft.SqlServer.Dts.Runtime
Assembly :  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Syntaxe

'Déclaration
Public Shared Function NewSqlStorage ( _
    host As String, _
    username As String, _
    password As String _
) As StorageInfo
'Utilisation
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

Paramètres

  • host
    Type : System.String
    The name of the server that stores the packages.
  • username
    Type : System.String
    The user name that SQL Server authentication requires to connect to the database.
  • password
    Type : System.String
    The string password that SQL Server authentication requires to connect to the database.

Valeur de retour

Type : Microsoft.SqlServer.Dts.Runtime.StorageInfo
A StorageInfo object that specifies the SQL Server database.

Notes

If the username parameter is not set, Integration Services use Windows authentication to connect to the server.

If the username parameter is set, the password parameter must be set.

Voir aussi

Référence

StorageInfo Classe

Espace de noms Microsoft.SqlServer.Dts.Runtime