[计算机类试卷]微软认证70-228模拟试卷9及答案与解析.doc
《[计算机类试卷]微软认证70-228模拟试卷9及答案与解析.doc》由会员分享,可在线阅读,更多相关《[计算机类试卷]微软认证70-228模拟试卷9及答案与解析.doc(8页珍藏版)》请在麦多课文档分享上搜索。
1、微软认证 70-228模拟试卷 9及答案与解析 1 You are the administrator of a SQL Server 2000 computer. The server contains a database named Inventory. Users report that several storage locations in the UnitsStored field contain negative numbers. You examine the databases table structure. The table properties are config
2、ured as shown in the exhibit. You correct all the negative numbers in the table. You must prevent the database from storing negative numbers. You also want to minimize use of server resources and physical I/O.Which transact-SQL statement should you execute? ( A) ALTER TABLE dbo.storagelocations ADD
3、CONSTRAINTS CK_storagelocations_UnitsStored CHECK (UnitsStored= 0) ( B) CREATE TRIGGER CK_UnitsStored On StorageLocations FOR INSERT, UPDATE AS IF INSERTED, UnitsStored = 0 GO Sp_bindrule OK_UnitsStored, StorageLocations, UnitsStored GO ( D) CREATE PROC UpdateUnitsStored (StorageLocationID int, Unit
4、sStored bigint)AS IF UnitsStored 0 DATSERROR (50099, 17) ELSE UPDATE storaheLocations SET UnitsStored = UnitsStored WHERE StorageLocationID = storageLocationID 2 You are the administrator of a SQL Server 2000 computer. The server contains a database named Sales. You perform full database backups eve
5、ry two days. You also run regular database consistency checks on the server. The most recent check of the Sales database returns the following message. “CHECKDB found 0 allocation errors and 9 consistency errors in the table Orders (object ID 214575782).” You want to correct the data integrity error
6、s while minimizing the amount of data lost. What should you do? ( A) Disconnect users from the Sales database. Enable the single user database option. Execute the DBCC CHECKTABLE statement for the Orders table, and specify the REPAIR_REBUILD option. ( B) Disconnect users from the Sales database. Ena
7、ble the DBO use only database option. Execute the DBCC CHECKTABLE statement for the Orders table, and specify the REPAIR_REBUILD option. ( C) Disconnect users from the Sales database. Execute the RESTORE DATABASE statement for the Sales database ( D) Execute the DBCC CLEANTABLE statement for the Ord
8、ers table. ( E) Execute the sp_table_validation stored procedure for the Orders table. 3 You are a database administrator in the Los Angeles branch office of a specialty foods supplier. A mainframe database at the headquarters contains all company data. Each branch office contains a SQL Server 2000
9、computer that imports regional data from the mainframe database. The server in Los Angeles contains a Data Transformation Services (DTS) package that uses OLE DB to connect to the companys mainframe database. The DTS package extracts and transforms data about buyers and products for that region. The
10、 DTS package then writes the data to the SQL Server database in Los Angeles. You need to configure a SQL Server computer for the new branch office in Sydney. You want to copy the Los Angeles package and modify it so that it writes data to the SQL Server database in Sydney. You use the DTS Designer t
11、o modify the DTS package so that it imports regional data from the mainframe database to the server in Sydney. The modified DTS package runs successfully on the server in Los Angeles. You save this DTS package to the server in Sydney, but the server in Sydney cannot connect to the mainframe database
12、. You want to enable the server in Sydney to connect to the mainframe database. What should you do? ( A) Change the connection properties in the DTS package so that the package uses new login credentials to connect to the mainframe database. ( B) Modify the workflow in the DTS package so that the se
13、rver in Sydney is included. ( C) On the server in Sydney, install an OLE DB provider for the mainframe database. ( D) On the server in Sydney, delete and then re-create the DTS package. 4 You are the administrator of a SQL Server 2000 database named Articles. A large city newspaper uses this databas
14、e to store its archived newspaper articles. Journalists query the database as part of their research. You have created full-text indexes so that users can query the articles quickly. A hardware failure forces you to restore the entire database from backup. After you restore the database, the journal
15、ists report that they can no longer run queries without receiving errors. You want to ensure that the journalists can query the database. What should you do? ( A) Create a new full-text catalog for the Articles database ( B) Rebuild the full-text catalog for the Articles database ( C) Create a new f
16、ull-text index on the table that holds the text for the articles ( D) Repopulate the full-text index on the table that holds the text for the articles 微软认证 70-228模拟试卷 9答案与解析 1 【正确答案】 A 【试题解析】 Explanation: CHECK constraints are used to enforce domain integrity by restricting the values that are accep
17、ted by a column. They determine which values are valid by testing a logical expression that is not based on data in another column. The problem posed by this scenario can be solved through the implementation of such a constraint. In this solution the CHECK constraint is added in line 1 and the CHECK
18、 expression is specified in line 3. The expression specifies that the values contained in the UnitsStored column must be more than or equal to 0. Incorrect Answers: B: This solution uses a trigger to perform the CHECK constraint, which a trigger can do. However, it is recommended that triggers only
19、be used when the CHECK constraint cannot meet the functionality required by the application. This is thus not the best answer. C: In this solution creates a new table is created with the CREATE TABLE statement. This is inappropriate to the problem, as it does not address the insertion of negative va
20、lues in the existing table. D: This solution creates a stored procedure to perform the CHECK constraint. 2 【正确答案】 A 【试题解析】 Explanation: We should repair the database with the DBCC CHECKTABLE REPAIR_REBUILD command. We should run this repair statement when the database is configured to single user. N
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 试卷 微软 认证 70228 模拟 答案 解析 DOC
