You are the administrator of a SQL Server 2000 computer. The server contains a database named Acct. You purge the Acct database

admin2009-05-19  15

问题 You are the administrator of a SQL Server 2000 computer. The server contains a database named Acct. You purge the Acct database of old records and perform a full backup. The database now uses 4 GB of space. The database files are configured as shown in the Acct Properties exhibit.


The server has two hard disks that are configured as shown in the Server Configuration exhibit.


The 3 GB transaction log file for the Acct database is stored on drive C. You need to make room for a new database that has a 3 GB data file and a 1 GB transaction log file. You want to optimize database performance on both databases. You also want to minimize administrative overhead.
What should you do?

选项 A、Shrink the empty data file on drive E.
Place the new data file and the new log file on drive E.
B、Shrink the empty data file on drive E.
Backup and shrink the log file on drive C to 2 GB.
Place the new data file on drive E and the new log file on drive C.
C、Shrink the data file on drive D to 1 GB, and then shrink the data file on drive E to 2 GB.
Place the new data file on drive D and the new log file on drive E.
D、Shrink and delete the data file on drive C, and then shrink the database files on drives D and E so that they are both 2 GB.
Place the new data file and the new log file on drive C.

答案B

解析 Explanation: We must add a new 3GB database with a 1GB transaction log file. Currently we have database that is using 4GB for data and 3GB for the log file. We should place the log file and the data file on two different physical disks out of performance reasons.

The command DBCC SHRINKFILE with the EMPTYFILE option can be used to shrink a datafile to empty. The data will be migrated to the other files in the filegroup. We use this method to free 4.5 GB on Drive E. Then we backup the log file on C and reduce it to 2GB. Then we put the database data file on drive (3GB) and put the log file of the new database on drive C (1GB).

Incorrect answers:
A: It’s better to put the data file and the log file of the new database on two different physical disks out of performance reasons.

C: It’s better to put the data file and the log file of the new database on two different physical disks out of performance reasons.

D: It’s better to put the data file and the log file of the new database on two different physical disks out of performance reasons.
转载请注明原文地址:https://jikaoti.com/ti/YwO7FFFM
0

最新回复(0)