Question
a.
IF (@@Error 0)
ROLLBACK
ELSE
COMMIT
END
b.
IF (@@Error 0)
ROLLBACK
c.
IF (@@Error 0)
ROLLBACK
ELSE
END
d.
All of the mentioned
Posted under SQL Server
ROLLBACK
ELSE
COMMIT
END
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following code snippet is valid control flow statement?
Similar Questions
Discover Related MCQs
Q. Point out the wrong statement.
View solution
Q. Which of the following two Transact-SQL statements are commonly used with WHILE?
View solution
Q. Which of the following scenario makes use of BEGIN..END keyword redundant?
View solution
Q. The BEGIN and END statements are used when ____________
View solution
Q. Which of the following components constitutes use CASE expression?
View solution
Q. Variables was added newly to SQL Server version _____________
View solution
Q. Point out the wrong statement.
View solution
Q. Which of the following keyword is not associated with initialization of variable?
View solution
Q. Which of the following is a global variable?
View solution
Q. Point out the right statement.
View solution
Q. Which of the following global has return type ‘numeric’?
View solution
Q. _________ gives amount of time, in ticks, that SQL Server has been idle since it was last started.
View solution
Q. @@LANGUAGE variable whose return type nvarchar is specified in _____________
View solution
Q. Life cycle of typical cursor involves ______ steps in SQL Server.
View solution
Q. Point out the correct statement.
View solution
Q. How many type of cursor is present in SQL Server?
View solution
Q. Various alternatives to cursor in SQL Server are ___________
View solution
Q. Point out the wrong statement.
View solution
Q. A dynamic cursor in SQL Server allows you to see __________ data.
View solution
Q. Which of the cursors further have their subtypes?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond SQL Server? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!