Select from following answers:- GRANT DELETE ON Purchases.Suppliers TO ContosoUser
- 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
- GRANT SELECT ON Purchases.Suppliers TO ContosoUser
- CREATE PROCEDURE Purchases.PurgeInactiveSuppliers AS DELETE FROM Purchases.Suppliers WHERE IsActive = 0 GO GRANT EXECUTE ON Purchases.PurgeInactiveSuppliers TO ContosoUser
- All Above
CREATE PROCEDURE Purchases.PurgeInactiveSuppliers
AS DELETE FROM Purchases.Suppliers WHERE IsActive = 0
GO
GRANT EXECUTE ON Purchases.PurgeInactiveSuppliers TO ContosoUser
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator