Método ExecuteWithResults (StringCollection)
Executes a batch of Transact-SQL statements that return multiple result sets.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxe
'Declaração
Public Function ExecuteWithResults ( _
sqlCommands As StringCollection _
) As DataSet()
'Uso
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[]
Parâmetros
- sqlCommands
Tipo: System.Collections.Specialized. . :: . .StringCollection
A StringCollection system object value that specifies the batches of Transact-SQL statements to be executed.
Valor de retorno
Tipo: array<System.Data. . :: . .DataSet> [] () [] []
A DataSet system object array value that contains multiple result sets.