Partager via


ExecuteWithResults méthode (StringCollection)

Executes a batch of Transact-SQL statements that return multiple result sets.

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

Syntaxe

'Déclaration
Public Function ExecuteWithResults ( _
    sqlCommands As StringCollection _
) As DataSet()
'Utilisation
Dim instance As ServerConnection
Dim sqlCommands As StringCollection
Dim returnValue As DataSet()

returnValue = instance.ExecuteWithResults(sqlCommands)
public DataSet[] ExecuteWithResults(
    StringCollection sqlCommands
)
public:
array<DataSet^>^ ExecuteWithResults(
    StringCollection^ sqlCommands
)
member ExecuteWithResults : 
        sqlCommands:StringCollection -> DataSet[] 
public function ExecuteWithResults(
    sqlCommands : StringCollection
) : DataSet[]

Paramètres

Valeur de retour

Type : array<System.Data. . :: . .DataSet> [] () [] []
A DataSet system object array value that contains multiple result sets.