ExecuteSql.ExecuteWithResults Method (String, Object)
Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Declaration
Public Shared Function ExecuteWithResults ( _
query As String, _
con As Object _
) As DataTable
'Usage
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
Parameters
- query
Type: System.String
A string value for the query.
- con
Type: System.Object
The connection object used in the query.
Return Value
Type: System.Data.DataTable
The result of the query