单项选择题
You work with a database named DB1, which is located on a SQL Server 2005 computer. You discover that a table scan on Table1 in DB1 causes a slow query. Table1 is a very large table that is used frequently. You ascertain that the query contains the following statement. SELECT col1, col2 FROM table1 WHERE col3 =
What should you do?()
A.Update all statistics on Table1 in DB1.
B.Use the CREATE STATISTICS statement in DB1 to create missing statistics on col3of Table1.
C.Set the priority boost server option to 1.
D.Execute the following statement.USE DB1GOCREATE INDEX index1 ON table1(col3)INCLUDE(col1, col2) WITH (ONLINE = ON)GO
相关考题
-
单项选择题
Your SQL Server 2005 database contains a table that has 500 million rows of data. Some of the data is historical and some is current. You need to partition the data on a single server to increase performance and optimize maintenance. What should you do?()
A.Implement horizontal partitioning.
B.Implement vertical partitioning.
C.Implement a raw partition.
D.Implement distributed partitioning. -
单项选择题
Application developers in TestKing.com create an assembly that contains a CLR function.This CLR function reads data from a spreadsheet, performs some calculations, and returns the data to a SQL Server 2005 computer. You need to register the assembly with SQL Server 2005 by using the CREATE ASSEMBLY statement and the least privileged security permission set. Which permission set should you use?()
A.Default
B.SAFE
C.EXTERNAL ACCESS
D.UNSAFE -
单项选择题
TestKing.com has two SQL Server 2005 computers named SQL1 and SQL2. A user in TestKing.com named Eric writes many ad hoc queries against the company databases.Eric has access to the Customer database on SQL1. He does not have access to the Sales database on SQL2. You need to ensure that Eric can write queries that join information from both servers. What should you do first?()
A.Create a linked server on SQL1 to SQL2. Configure the linked server to use impersonation.
B.Create a linked server on SQL1 to SQL2. Configure the linked server to use mapped logins.
C.Instruct Eric to write the queries on SQL2 by using the OPENQUERY statement and specifying SQL1 as the server name.
D.Instruct Eric to specify SQL Server object names by using four-part notation.
