batch in SQL Server
what is batch in SQL Server and where we can use it ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vilas GitePosted Jun 8, 2011, 4:14 AM
SQL Batch definition : Batch is an collections of T-SQL(T-SQL is database language) Statements.
There are two types of Batches : 1) Anonymous batches 2) Named batches.
1) Anonymous Batches : Anonymous batch have no name only T- SQL statements. (Batch without name).
Syntax : Begin
-------Statements-----
---------Statements-----
End
2) Named Batches : Named batches dived into 3 types.
i) Stored Procedures
ii) Functions
iii) Triggers.
------------------------------------------------------------------------
If this reply solve your post…then "MARK AS ANSWER"!
Vilas GitePosted Jun 8, 2011, 4:22 AM
See More for Perfect:
Batch Definition and Rules : http://msdn.microsoft.com/en-us/library/ms175502.aspx
Batch Example ( How to use) : http://msdn.microsoft.com/en-us/library/aa212832(SQL.80).aspx
------------------------------------------------------------------------------------------------------------------
If this reply solve your post…then "MARK AS ANSWER"!