ExecuteWithResults 方法 (String)

Executes a query and returns a DataTable with the specified results. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。

命名空间:  Microsoft.SqlServer.Management.Sdk.Sfc
程序集:  Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

语法

声明
Public Function ExecuteWithResults ( _
    query As String _
) As DataTable
用法
Dim instance As ExecuteSql
Dim query As String
Dim returnValue As DataTable

returnValue = instance.ExecuteWithResults(query)
public DataTable ExecuteWithResults(
    string query
)
public:
DataTable^ ExecuteWithResults(
    String^ query
)
member ExecuteWithResults : 
        query:string -> DataTable 
public function ExecuteWithResults(
    query : String
) : DataTable

参数

返回值

类型:System.Data. . :: . .DataTable
The DataTable with the results.