Partager via


ExecuteWithResults méthode (String)

Executes a Transact-SQL statement that returns a result set.

Espace de noms :  Microsoft.SqlServer.Management.Common
Assembly :  Microsoft.SqlServer.ConnectionInfo (dans Microsoft.SqlServer.ConnectionInfo.dll)

Syntaxe

'Déclaration
Public Function ExecuteWithResults ( _
    sqlCommand As String _
) As DataSet
'Utilisation
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

Paramètres

Valeur de retour

Type : System.Data. . :: . .DataSet
A DataSet system object value that contains the result set.