What should you do to use the Copy Database Wizard to accomplish this task?
You work as the database administrator at Domain.com. All servers on the Domain.com network run Windows Server 2003 and all database servers run SQL Server 2005. The Domain.com network contains two database servers named Certkiller -DB01 and Certkiller -DB02. Certkiller -DB01 hosts a database named CK_Orders that stores sales data for the company. The tables in the CK_Orders database are shown in the following database diagram.
A full-text index has been created on the ProductID column of the Products table. You need to move the CK_Orders database from Certkiller -DB01 to Certkiller -DB02. You need to ensure that users can run queries against the CK_Orders database while it is being moved, and that the full-text index can be queried once the database has been moved to Certkiller -DB02. You plan to use the Copy Database Wizard to accomplish this task.
exhibit What should you do? (Each correct answer presents part of the solution. Choose THREE.)
Which two article properties should you change the article properties so that all indexes of Table1 in DB1 are
Your company has two SQL Server 2005 computers named SQL1 and SQL2. A database named DB1 is located on SQL1. DB1 contains a table named Table1. Table1 is replicated to a database named DB1 Repl, which is located on SQL2. Full-Text Search is not being used. Users report that the queries they run against Table1 in DB1 Repl are very slow. You investigate and discover that only the clustered index of Table1 is replicated. All other indexes in DB1 Repl are missing. You examine the Table1 article properties. The current Table1 article properties are shown in the exhibit. (Click the Exhibit button.)
You need to change the article properties so that all indexes of Table1 in DB1 are replicated when the subscription is reinitialized.
Which two article properties should you change? (Each correct answer presents part of the solution. Choose two.)
Exhibit:
What should you do to achieve this goal without negatively affecting performance?
Your department is responsible for creating a list of customer e-mail addresses from data in a SQL Server 2005
database. The list must include the date on which each customer was last contacted.
The data in the result set must have column names. The list must be ordered by date of last contact, with the most
recent contact first. The LastContact column is stored as a datetime.
The date should be displayed as MM/DD/YYYY. A coworker develops the following query.
SELECT email_address AS EmailAddress,
CONVERT(nvarchar, lastcontact, 101) AS LastContact
FROM Contact
ORDER BY LastContact DESC
You test this query and find that the data is displayed in the following order.
EmailAddress LastContact
andrew@contoso.com 01/24/2003
marc@contoso.com 06/12/2005
stefan@contoso.com 07/13/2004
You need to modify the query so that the data is listed in the proper order. You want to achieve
this goal without negatively affecting performance.
What should you do?
What should you do to capture only those App1 actions in DB1 that have a response time of two seconds or more?
You use an order application named App1, which connects to a SQL Server 2005 database named DB1. Because some actions take more than three seconds, users report slow performance when they use App1. You want to identify those actions by using the Tuning template in SQL Server Profiler to trace the application. You need to capture only those App1 actions in DB1 that have a response time of two seconds or more. What should you do?
What should you do to minimize the impact of this operation on SQL1 performance?
You have a SQL Server 2005 computer named SQL1. Users report that the time required to run their queries on SQL1 is steadily increasing. You want to investigate this issue by using SQL Server Profiler to trace all user queries. You need to decide on which computer to run SQL Server Profiler, and where to store the trace. You must minimize the impact of this operation on SQL1 performance. What should you do?
Which two article properties should you change the article properties so that all indexes of Table1 in DB1 are
Your company has two SQL Server 2005 computers named SQL1 and SQL2. A database named DB1 is located on SQL1. DB1 contains a table named Table1. Table1 is replicated to a database named DB1Repl, which is located on SQL2. Full-Text Search is not being used.
Users report that the queries they run against Table1 in DB1Repl are very slow. You investigate and discover that only the clustered index of Table1 is replicated. All other indexes in DB1Repl are missing.
You examine the Table1 article properties. The current Table1 article properties are shown in the exhibit.
(Click the Exhibit button.) You need to change the article properties so that all indexes of Table1 in DB1 are replicated when the subscription is reinitialized. Which two article properties should you change? (Each correct answer presents part of the solution. Choose two.)
Which two actions should you perform to modify the Transact-SQL statement?
You use a SQL Server 2005 database that contains a table named Customers. The Customers table contains the following columns.
You create a view named v_Customer by using the following Transact-SQL statement. CREATE VIEW v_CustomerASSELECT CustomerID, CompanyName, FirstName, LastName, PictureFROM Customers You want to create an index on the v_Customer view. Prior to creating the index, you need to modify the Transact-SQL statement. exhibit Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which Transact-SQL batch should you use to ensure that the database is always in a consistent state?
Your data warehouse includes three separate SQL Server 2005 tables for storing customer data. Each table is used to horizontally partition data that is migrated from a SQL Server 2000 installation to SQL Server 2005. Data is partitioned as shown in the following table.
The database does not allow customers to opt-out of e-mail marketing offers. You need to add a new OptOutFlag column to each of the customer tables. You must ensure that this column is added to either all three customer tables or none of them. You must also ensure that the database is always in a consistent state. exhibit Which Transact-SQL batch should you use?
What should you do to resolve the error and allow the new employee to gain access to SQL1?
A new employee needs access to a SQL Server 2005 database that is located on a server named SQL1. You create a login named ajones by using the following Transact-SQL statement. CREATE LOGIN ajones WITH PASSWORD = ‘SQLServer$1’ The new employee reports that when he logs in, he receives the following error message: "Login failed. The user is not associated with a trusted SQL Server connection." You need to resolve the error and allow the new employee to gain access to SQL1. What should you do?
What should you do?
You work in San Francisco at the main office of your company. You are responsible for managing a SQL Server 2005 database. The sales department wants a report that compares customer activity in the previous quarter between the main office in San Francisco and the branch office in Paris. They want the data sorted by surname and first name. You restore a recent backup of the Paris database onto your server. You write queries to build the report, ordering the data by the Surname and FirstName columns. You review the data and notice that the customer list from the Paris database is sorted differently. The sales department needs the revised data within 15 minutes for a presentation. You need to implement the fastest possible solution that ensures that the data from both databases is sorted identically. What should you do?