Metodo ExecuteSql
Executes a batch of Transact-SQL statements that does not expect a returned results set on the specified instance of SQL Server.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Sintassi
'Dichiarazione
Protected Sub ExecuteSql ( _
server As Server, _
queries As StringCollection _
)
'Utilizzo
Dim server As Server
Dim queries As StringCollection
Me.ExecuteSql(server, queries)
protected void ExecuteSql(
Server server,
StringCollection queries
)
protected:
void ExecuteSql(
Server^ server,
StringCollection^ queries
)
member ExecuteSql :
server:Server *
queries:StringCollection -> unit
protected function ExecuteSql(
server : Server,
queries : StringCollection
)
Parametri
- server
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .Server
A Server object that specifies the instance of SQL Server on which to execute the batch of Transact-SQL statements.
- queries
Tipo: System.Collections.Specialized. . :: . .StringCollection
A StringCollection system object that contains the batch of Transact-SQL statements to be executed.
Vedere anche