ExecuteSql.ExecuteWithResults Método (String)
Executes a query and returns a DataTable with the specified results. 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 Function ExecuteWithResults ( _
query As String _
) As DataTable
'Uso
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
Parámetros
- query
Tipo: System.String
A string value for the query.
Valor devuelto
Tipo: System.Data.DataTable
The DataTable with the results.