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

Câu 18: 70-461: MCSA Querying Microsoft SQL Server 2012/2014

You administer a Microsoft SQL Server database named ContosoDb. The database contains a table named Suppliers and a column named IsActive in thePurchases schema. You create a new user named ContosoUser in ContosoDb. ContosoUser has no permissions to the Suppliers table. You need to ensure thatContosoUser can delete ro…

Nội dung câu hỏi

You administer a Microsoft SQL Server database named ContosoDb. The database contains a table named Suppliers and a column named IsActive in thePurchases schema. You create a new user named ContosoUser in ContosoDb. ContosoUser has no permissions to the Suppliers table. You need to ensure thatContosoUser can delete rows that are not active from Suppliers. You also need to grant ContosoUser only the minimum required permissions. Which Transact-SQL statement should you use?

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. GRANT DELETE ON Purchases.Suppliers TO ContosoUser
  2. B. CREATE PROCEDURE Purchases.PurgeInactiveSuppliers WITH EXECUTE AS USER = 'dbo' AS DELETE FROM Purchases.Suppliers WHERE IsActive = 0 GO GRANT EXECUTE ON Purchases.PurgelnactiveSuppliers TO ContosoUser
  3. C. GRANT SELECT ON Purchases.Suppliers TO ContosoUser
  4. D. CREATE PROCEDURE Purchases.PurgeInactiveSuppliers AS DELETE FROM Purchases.Suppliers WHERE IsActive = 0 GO GRANT EXECUTE ON Purchases.PurgeInactiveSuppliers TO ContosoUser — đáp án hiện tại

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ề