Valid 70-461 Dumps shared by ExamDiscuss.com for Helping Passing 70-461 Exam! ExamDiscuss.com now offer the newest 70-461 exam dumps, the ExamDiscuss.com 70-461 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 70-461 dumps with Test Engine here:
A local bank uses a SQL Server database to manage accounts. You are developing a stored procedure that contains multiple Transact-SQL INSERT statements. The stored procedure must use transaction management to handle errors. You need to ensure that the stored procedure rolls back the entire transaction if a run-time occurs. Which Transact-SQL statement should you add to the stored procedure?
Correct Answer: D
Explanation/Reference: Explanation: SET XACT_ABORT specifies whether SQL Server automatically rolls back the current transaction when a Transact-SQL statement raises a run-time error. When SET XACT_ABORT is ON, if a Transact-SQL statement raises a run-time error, the entire transaction is terminated and rolled back. References: https://docs.microsoft.com/en-us/sql/t-sql/statements/set-xact-abort-transact-sql?view=sql- server-2017