but)
The SQL statement is a single SQL statement (for example, SELECT * FROM table1 or SET NOCOUNT ON). A package, on the other hand, is a series of SQL statements sent to the server for execution as a whole unit. Statements in the package are compiled into one execution plan. Parties divided by GO
Thus, the only difference between the SQL statement and Batch is that each SQL statement is sent to the server as a separate unit and, therefore, compiled separately from other SQL statements, and the SQL commands in the package are compiled together?
b) I assume that one of the main differences between a stored procedure and a package is that the stored procedures are precompiled, while the lots arent?
thanks
sql sql-server tsql
AspOnMyNet
source share