【计算机类职业资格】微软认证70-228-试卷1及答案解析.doc
《【计算机类职业资格】微软认证70-228-试卷1及答案解析.doc》由会员分享,可在线阅读,更多相关《【计算机类职业资格】微软认证70-228-试卷1及答案解析.doc(6页珍藏版)》请在麦多课文档分享上搜索。
1、微软认证 70-228-试卷 1及答案解析(总分:8.00,做题时间:90 分钟)一、单选题(总题数:4,分数:8.00)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 struc
2、ture. The table properties are configured as shown in the exhibit. (分数:2.00)A.ALTER TABLE dbo.storagelocations ADD 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 O
3、K_UnitsStored, StorageLocations, UnitsStored GOD.CREATE PROC UpdateUnitsStored (StorageLocationID int, UnitsStored bigint)AS IF UnitsStored = 0) B.CREATE TRIGGER CK_UnitsStored On StorageLocations FOR INSERT, UPDATE AS IF INSERTED, UnitsStored = 0 GO Sp_bindrule OK_UnitsStored, StorageLocations, Uni
4、tsStored GOD.CREATE PROC UpdateUnitsStored (StorageLocationID int, UnitsStored bigint)AS IF UnitsStored 0 DATSERROR (50099, 17) ELSE UPDATE storaheLocations SET UnitsStored = UnitsStored WHERE StorageLocationID = storageLocationID解析:解析:Explanation: CHECK constraints are used to enforce domain integr
5、ity by restricting the values that are accepted 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
6、 constraint is added in line 1 and the CHECK 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. Ho
7、wever, it is recommended that triggers only 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 d
8、oes not address the insertion of negative values in the existing table. D: This solution creates a stored procedure to perform the CHECK constraint.2.You are the administrator of a SQL Server 2000 computer. The server contains a database named Sales. You perform full database backups every two days.
9、 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 errors while minimi
10、zing the amount of data lost. What should you do?(分数:2.00)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. Enable the DBO
11、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 databaseD.Execute the DBCC CLEANTABLE statement for the Orders table.E.Execute
12、the sp_table_validation stored procedure for the Orders table.解析:解析: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. Note: DBCC CHECKTABLE checks the integrity of the data,
13、index, text, ntext, and image pages for the specified table or indexed view. DBCC CHECKTABLE can take a specified repair option to repair the found errors but must be in single-user mode to use a repair option. It can specify the REBUILD_FAST option, which performs minor, non time-consuming repair a
14、ctions such as repairing extra keys in nonclustered indexes and can be done quickly and without risk of data loss; and it can also specify the REPAIR_REBUILD option, which performs all repairs that can done by REPAIR_FAST and as well as time-consuming repairs such as index rebuilding. These repairs
15、can also be done without risk of data loss. Incorrect Answers: B: The database option DBO use only, would only allow the database owner running the database. This might be too restrictive. C: We are not told when how often consistency checks are performed but assuming that consistency occurs more fr
16、equently than the database backups then using RESTORE DATABASE to restore a database from the last full backup would result in the loss of data entered into the database since the last full database backup was performed. This would result in data loss. D: DBCC CLEANTABLE is used to reclaim space aft
17、er a variable length column or a text column is dropped using the ALTER TABLE DROP COLUMN statement. E: The sp_table_validation stored procedure returns rowcount or checksum information on a table or indexed view, or compares the provided rowcount or checksum information with the specified table or
18、indexed view. This stored procedure is used in replication and checks that the structure of the table being replicated between two tables are identical, i.e., that the tables have the same columns existing in the same order, same data types and lengths, and same NULL/NOT NULL conditions.3.You are a
19、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 computer that imports regional data from the mainframe database.The server in Los Angeles contains
20、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 DTS package then writes the data to the SQL Server database in Los Angeles.You need to configure a
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
5000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 职业资格 微软 认证 70228 试卷 答案 解析 DOC
