Batch in SQL Server
what is batch in SQL Server and where we can use it ?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vilas GiteRank #951 · 2.1K reputationPosted Jun 8, 2011, 12:14 AM EDT
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 GiteRank #951 · 2.1K reputationPosted Jun 8, 2011, 12:22 AM EDT
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"!