Compartilhar via


Método ExecuteWithResults (String)

Executes a query and returns a DataTable with the specified results. 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 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

Valor de retorno

Tipo: System.Data. . :: . .DataTable
The DataTable with the results.