Câu 61: 70-461: MCSA Querying Microsoft SQL Server 2012/2014
You develop a database application for Microsoft SQL Server and Microsoft Azure SQL Database. You need to raise an exception and transfer execution to a CATCH block. You need to ensure that the exception returns output in the following format:Msg 51000, Level 16, State 1, Line 1The record does not exist. Which Transac…
Nội dung câu hỏi
You develop a database application for Microsoft SQL Server and Microsoft Azure SQL Database. You need to raise an exception and transfer execution to a CATCH block. You need to ensure that the exception returns output in the following format:Msg 51000, Level 16, State 1, Line 1The record does not exist. Which Transact-SQL statement should you run?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. DECLARE @Message NVARCHAR(2048); SELECT @Message = FORMATMESSAGE('The record does not exist.'); THROW 51000 , 1 , @Message
- B. THROW 51000 , 'The record does not exist.' , 1 — đáp án hiện tại
- C. THROW ERROR_MESSAGE ('The record does not exist.'), 1
- D. THROW 51000 , FORMATMESSAGE('The record does not exist.') , 1
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.