ExecuteWithResults Método (String)
Executes a Transact-SQL statement that returns a result set.
Espacio de nombres: Microsoft.SqlServer.Management.Common
Ensamblado: Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxis
'Declaración
Public Function ExecuteWithResults ( _
sqlCommand As String _
) As DataSet
'Uso
Dim instance As ServerConnection
Dim sqlCommand As String
Dim returnValue As DataSet
returnValue = instance.ExecuteWithResults(sqlCommand)
public DataSet ExecuteWithResults(
string sqlCommand
)
public:
DataSet^ ExecuteWithResults(
String^ sqlCommand
)
member ExecuteWithResults :
sqlCommand:string -> DataSet
public function ExecuteWithResults(
sqlCommand : String
) : DataSet
Parámetros
- sqlCommand
Tipo: System. . :: . .String
A String value that specifies the Transact-SQL command to be executed.
Valor devuelto
Tipo: System.Data. . :: . .DataSet
A DataSet system object value that contains the result set.