Which Transact-SQL statement should you use?

You develop three Microsoft SQL Server 2012 databases named Database1, Database2, and Database3. You have permissions on both Database1 and Database2. You plan to write and deploy a stored procedure named dbo.usp_InsertEvent in Database3. dbo.usp_InsertEvent must execute other stored procedures in the other databases. You need to ensure that callers that do not have...

Which object should you use?

You develop a Microsoft SQL Server 2012 database. You need to create a batch process that meets the following requirements: • Returns a result set based on supplied parameters. • Enables the returned result set to perform a join with a table. Which object should you use?A . Inline user-defined functionB . Stored procedureC...

What should you do?

You administer a Microsoft SQL Server 2012 database that has multiple tables in the Sales schema. Some users must be prevented from deleting records in any of the tables in the Sales schema. You need to manage users who are prevented from deleting records in the Sales schema. You need to achieve this goal...