ExecuteWithResults 方法 (String, Object)
不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
命名空间: Microsoft.SqlServer.Management.Sdk.Sfc
程序集: Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
语法
声明
Public Shared Function ExecuteWithResults ( _
query As String, _
con As Object _
) As DataTable
用法
Dim query As String
Dim con As Object
Dim returnValue As DataTable
returnValue = ExecuteSql.ExecuteWithResults(query, _
con)
public static DataTable ExecuteWithResults(
string query,
Object con
)
public:
static DataTable^ ExecuteWithResults(
String^ query,
Object^ con
)
static member ExecuteWithResults :
query:string *
con:Object -> DataTable
public static function ExecuteWithResults(
query : String,
con : Object
) : DataTable
参数
- query
类型:System. . :: . .String
A string value for the query.
- con
类型:System. . :: . .Object
The connection object used in the query.
返回值
类型:System.Data. . :: . .DataTable
The result of the query