top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What are the restrictions while creating batches in SQL Server?

+4 votes
55 views
What are the restrictions while creating batches in SQL Server?
posted Oct 19, 2015 by Shivaranjini

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

CREATE DEFAULT, CREATE PROCEDURE, CREATE RULE, CREATE TRIGGER, and CREATE VIEW statements cannot be combined with other statements in a batch.

A batch can't contain altered command and then the new columns referenced command of the same table.

The EXECUTE keyword is not required, when an EXECUTE statement is the first statement in a batch

answer Oct 22, 2015 by Manikandan J
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...