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 administer a Microsoft SQL Server 2012 database. The database is currently configured to log ship to a secondary server.You are preparing to cut over to the secondary server by stopping log-shipping and bringing the secondary database online. You want to perform a tail-log backup.You need to leave the primary database in a restoring state.Which option of the BACKUP LOG command should you use?
You administer a Microsoft SQL Server 2012 database. You want to make a full backup of the database to a file on disk.In doing so, you need to output the progress of the backup.Which backup option should you use?
You are a database administrator for a Microsoft SQL Server 2012 database named AdventureWorks2012.You create an Availability Group defined by the following schema. (Line numbers are included for reference only.)You need to implement an AlwaysOnAvailablity Group that will meet the following conditions:Production transactions should be minimally affected. The secondary server should allow reporting queries to be performed. If the primary server goes offline, the secondary server should not automatically take over.Which Transact-SQL statement should you insert at line 06?
You administer two Microsoft SQL Server 2012 servers named ProdSrv1 and ProdSrv2. ProdSrv1 is configured as a Distributor. Both servers are configured to use the Windows NT Service virtual accounts for all SQL Services.You are configuring snapshot replication from ProdSrv1 to ProdSrv2 by using ProdSrv2 as a pull subscriber.The distribution agent on ProdSrv2 regularly fails, displaying the following error message:"Cannot access the file. Operating system error code 5 (Access is denied.)." You need to configure the distribution agent by granting only the minimum required access to all accounts.What should you do?
You are a database administrator for a Microsoft SQL Server 2012 environment.You want to deploy a new application that will scale out the workload to at least five different SQL Server instances.You need to ensure that for each copy of the database, users are able to read and write data that will then be synchronized between all of the database instances.Which feature should you use?