Chinaunix首页 | 论坛 | 博客
  • 博客访问: 210074
  • 博文数量: 317
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 2775
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-30 12:25
文章分类

全部博文(317)

文章存档

2010年(56)

2009年(38)

2008年(223)

我的朋友

分类:

2008-09-17 15:56:39

本题库摘自   更新时间:2008-9-17
更多考试题库信息可登陆查看。

6. A support engineer reports that inserting new sales transactions in a SQL Server 2005 database results in an
error. You investigate the error. You discover that in one of the databases, a developer has accidentally deleted
some data in a table that is critical for transaction processing. The database uses the full recovery model. You need
to restore the table. You need to achieve this goal without affecting the availability of other data in the database.
What should you do?
A. Back up the current transaction log. Restore the database with a different name and stop at the point just before
the data loss. Copy the table back into the original database.
B. Back up the current transaction log. Restore the database to the point just before the data loss.
C. Restore the database from the existing backup files to a time just before the data loss.
D. Restore the database to the point of the last full backup.
Answer: A

7. Your company uses SQL Server 2005. Users report that report execution is slow. You investigate and discover
that some queries do not use optimal execution plans. You also notice that some optimizer statistics are missing
and others are out of date. You need to correct the problem so that reports execute more quickly. Which two
Transact-SQL statements should you use? (Each correct answer presents part of the solution. Choose two.)
A. DBCC CHECKTABLE
B. ALTER INDEX REORGANIZE
C. UPDATE STATISTICS
D. CREATE STATISTICS
E. DBCC SHOW_STATISTICS
F. DBCC UPDATEUSAGE
Answer: CD

8. You are responsible for implementing maintenance jobs on a SQL Server 2005 database server. Certain jobs run
every Sunday and other jobs run at the beginning of every month. You need to schedule the jobs in the way that
uses the least amount of administrative effort. What should you do?
A. Create a job schedule that runs every Sunday. Assign weekly tasks to this schedule. Create a second schedule
that runs on the first day of every month. Assign monthly tasks to this schedule.
B. Create a job for each task that runs once a day. Use a Transact-SQL statement to check the date and day of the
week. If the day is either a Sunday or the first day of the month, execute the code.
C. Create a job schedule that runs once a day. Assign jobs to this job schedule. If the day is either a Sunday or the
first day of the month, execute the jobs.
D. Create a job for each task that runs once a week on Sunday. Add a second job schedule that runs the job on the
first of the month.
Answer: A

9. You are responsible for managing the database schema for an order entry application in a SQL Server 2005
database. After a design review, a member of the development staff asks you to add a new column named
CommissionRate to the Product table. Because the actual commission rates for all products are not known at this
time, each product has a default commission rate of 12 percent. The rate can be modified as necessary. You add
the new column. You need to configure the table to assign the default value as efficiently as possible. What should
you do?
A. Create an INSERT trigger to assign the default value to each item in the table.
B. Create a CHECK constraint to validate the data and to assign the default value to each item in the table.

阅读(289) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~