CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

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.

  1. A. DECLARE @Message NVARCHAR(2048); SELECT @Message = FORMATMESSAGE('The record does not exist.'); THROW 51000 , 1 , @Message
  2. B. THROW 51000 , 'The record does not exist.' , 1 — đáp án hiện tại
  3. C. THROW ERROR_MESSAGE ('The record does not exist.'), 1
  4. 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.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề