NewSqlStorage 方法

创建一个新的 MicrosoftSQL Server 数据库,其中将存储原始或升级的 Integration Services 包。

命名空间:  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

参数

  • username
    类型:System. . :: . .String
    SQL Server 身份验证为连接到数据库而要求的用户名。
  • password
    类型:System. . :: . .String
    SQL Server 身份验证为连接到数据库而要求的字符串密码。

返回值

类型:Microsoft.SqlServer.Dts.Runtime. . :: . .StorageInfo
一个指定 SQL Server 数据库的 StorageInfo 对象。

注释

如果未设置 username 参数,则 Integration Services 将使用 Windows 身份验证连接到服务器。

如果设置了 username 参数,则必须设置 password 参数。