ExecuteSql.ExecuteWithResults Método (String, Object)
No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.
Espacio de nombres: Microsoft.SqlServer.Management.Sdk.Sfc
Ensamblado: Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintaxis
'Declaración
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 devuelto
Tipo: System.Data.DataTable
The result of the query