IDTSApplication100.FolderExistsOnSQLServer 方法
此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。
Returns a Boolean that indicates whether the specified folder already exists on the instance of SQL Server.
命名空间: Microsoft.SqlServer.Dts.Runtime.Wrapper
程序集: Microsoft.SqlServer.DTSRuntimeWrap(在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)
语法
声明
Function FolderExistsOnSQLServer ( _
bstrFolderName As String, _
bstrServerName As String, _
bstrServerUserName As String, _
bstrServerPassword As String _
) As Boolean
用法
Dim instance As IDTSApplication100
Dim bstrFolderName As String
Dim bstrServerName As String
Dim bstrServerUserName As String
Dim bstrServerPassword As String
Dim returnValue As Boolean
returnValue = instance.FolderExistsOnSQLServer(bstrFolderName, _
bstrServerName, bstrServerUserName, _
bstrServerPassword)
bool FolderExistsOnSQLServer(
string bstrFolderName,
string bstrServerName,
string bstrServerUserName,
string bstrServerPassword
)
bool FolderExistsOnSQLServer(
[InAttribute] String^ bstrFolderName,
[InAttribute] String^ bstrServerName,
[InAttribute] String^ bstrServerUserName,
[InAttribute] String^ bstrServerPassword
)
abstract FolderExistsOnSQLServer :
bstrFolderName:string *
bstrServerName:string *
bstrServerUserName:string *
bstrServerPassword:string -> bool
function FolderExistsOnSQLServer(
bstrFolderName : String,
bstrServerName : String,
bstrServerUserName : String,
bstrServerPassword : String
) : boolean
参数
- bstrFolderName
类型:System.String
The folder you are looking for.
- bstrServerName
类型:System.String
The name of the instance of SQL Server to search for the folder.
- bstrServerUserName
类型:System.String
The user name to authenticate against the instance of SQL Server.
- bstrServerPassword
类型:System.String
The password for the given bstrServerUserName.
返回值
类型:System.Boolean
true if the folder exists on the specified instance of SQL Server; false if the folder does not exist.