Método ExecuteSql.ExecuteWithResults (String, Object)
Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (em Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintaxe
'Declaração
Public Shared Function ExecuteWithResults ( _
query As String, _
con As Object _
) As DataTable
'Uso
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
Parâmetros
- query
Tipo: System.String
A string value for the query.
- con
Tipo: System.Object
The connection object used in the query.
Valor de retorno
Tipo: System.Data.DataTable
The result of the query