PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which Transact-SQL statement should you use?

You administer a Microsoft SQL Server 2012 database named Orders.
Orders contains a table named OrderShip that is defined as follows:

A NULL value represents a domestic order. Ninety percent of the values in CountryCode are NULL.
Customers require a procedure that will return orders for all customers from a specified country.
You create a new procedure:

Performance on this procedure is slow.
You need to alter the schema to optimize this query. Objects created must use a minimum amount of
resources.
Which Transact-SQL statement should you use?

You need to ensure that database users and required ser…

You administer a Microsoft SQL Server 2012 database instance.
You plan to migrate the database to Windows Azure SQL Database. You verify that all objects contained in the
database are compatible with Windows Azure SQL Database.
You need to ensure that database users and required server logins are migrated to Windows Azure SQL
Database.
What should you do?

You need to grant users access according to the followi…

You administer a Windows Azure SQL Database database named Human_Resources. The database contains
2 tables named Employees and SalaryDetails. You add two Windows groups as logins for the server:
CORP\\Employees – All company employeesCORP\\HRAdmins – HR administrators only
HR Administrators are also company employees.
You need to grant users access according to the following requirements:
CORP\\Employees should have SELECT access to the Employees table. Only users in CORP\\HRAdmins
should have SELECT access to the SalaryDetails table.
Logins are based only on Windows security groups.
What should you do?

Which Transact-SQL command should you use?

You administer a Windows 2008 server hosting an instance of Microsoft SQL Server 2012 Standard Edition.
The server hosts a database named Orders.
Users report that a query that filters on OrderDate is taking an exceptionally long time. You discover that an
index named IX_OrderDate on the CustomerOrder table is heavily fragmenteD.
You need to improve the performance of the IX_OrderDate index. The index should remain online during the
operation.
Which Transact-SQL command should you use?

Which Transact-SQL batch should you use?

You administer a Microsoft SQL Server 2012 database that contains a table named AccountTransaction.
You discover that query performance on the table is poor due to fragmentation on the
IDX_AccountTransaction_AccountCode non-clustered index. You need to defragment the index. You also need
to ensure that user queries are able to use the index during the defragmenting process.
Which Transact-SQL batch should you use?


Page 433 of 6,830« First...102030...431432433434435...440450460...Last »