[计算机类试卷]微软认证70-228模拟试卷1及答案与解析.doc
《[计算机类试卷]微软认证70-228模拟试卷1及答案与解析.doc》由会员分享,可在线阅读,更多相关《[计算机类试卷]微软认证70-228模拟试卷1及答案与解析.doc(21页珍藏版)》请在麦多课文档分享上搜索。
1、微软认证 70-228模拟试卷 1及答案与解析 1 You are the administrator of a SQL Server 2000 computer. The server contains a database named Inventory. The Inventory database has a table named StorageLocations that stores the location of parts contained in your companys warehouses. The StorageLocations table is configur
2、ed as shown in the exhibit. The LocationDescription field is usually described with a name 10 to 25 characters in length. The locations never store more than 100,000 units of any given part.You want to modify the tables schema to save space. You cannot lose any existing data. You want to do this by
3、using the minimum amount of administrative time and server resources.Which Transact-SQL statement should you execute? ( A) ALTER TABLE dbo.StorageLocations ALTER COLUMN UnitsStored int NOT NULL ( B) ALTER TABLE dbo.StorageLocations LocationDescription char (25) COLLATE SQL_Latin1_General_CP1_CI_AS N
4、OT NULL ( C) ALTER TABLE dbo.StorageLocations ALTER COLUMN UnitsStored smallint NOT NULL ( D) ALTER TABLE dbo.StorageLocations LocationDescription nvarchar (25) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL 2 You are the administrator of a SQL Server 2000 computer. The server contains a database nam
5、ed sales. You need to change the way customer Ids appear in the Customers table. The database schema is shown in the exhibit. You need to automate the process of updating the primary key tools. You also want to minimize records locks and administration within the database during the update process.W
6、hat should you do? ( A) Add an ON UPDATE CASCADE constraint to the CustomerID field in the Customers table. Modify the values in the CustomerID field in the Customers table. ( B) Create a duplicate record that has a new CustomerID value. Update the foreign key fields in the invoices, contacts, and q
7、uotes tables with the new value. ( C) Disable the FOREIGN KEY constraints. Within a transaction, modify the values in the CustomerID field in the Customers table and all related foreign key values in the invoices, contacts, and quotes tables. Re-enable the FOREIGN KEY constraints after the keys are
8、changed. ( D) Create a Data Transformation Services package. Use the package to transform the CustomerID value and the values of the related foreign keys in the invoices, contacts, and quotes tables. 3 You are the database administrator for a financial services company. Employees enter data 24 hours
9、 a day into a SQL Server 2000 database. These employees report slower response times when new account information is gathered from branch offices and added to the database. You currently use the following BULK INSERT statement to add the account information: BULK INSERT finance.dbo.customers FROM di
10、bulkaccts143_10141000.txt WITH DATAFILETYPE = char, FIELD/TERMINATOR = t, ROWTERMINATOR = n, TABLOCK You want to ensure that response times do not slow when new account information is added to the database. What should you do? ( A) Drop the indexes for the customers table before the data load, and t
11、hen re-create the indexes after the data load is complete. ( B) Remove the TABLOCK option from the BULK INSERT statement. ( C) Add the BATCHSIZE option to the BULK INSERT statement and then set the option equal to 10 percent of the number of rows to be loaded. ( D) Add the ROWS_PER_BATCH option to t
12、he BULK INSERT statement and then set the option equal to 10 percent of the number of rows to be loaded. 4 You are the database administrator for a retail company. The company owns 270 stores. Every month, each store submits approximately 2,000 sales records, which are loaded into a SQL Server 2000
13、database at the corporate headquarters. A Data Transformation Services (DTS) package transforms the sales records, as they are loaded. The package writes the transformed sales records to the Sales table, which has a column for integer primary key values. The IDENTITY property automatically assigns a
14、 key value to each transformed sales record. After loading this months sales data, you discover that a portion of the data contains errors. You stop loading data, identify the problem records, and delete those records from the database. You want to reuse the key values that were assigned to the reco
15、rds that you deleted. You want to assign the deleted key values to the next sales records you load. You also want to disrupt users work as little as possible. What should you do? ( A) Export all records from the Sales table to a temporary table. Truncate the Sales table, and then reload the records
16、from the temporary table. ( B) Export all records from the Sales table to a text file. Drop the Sales table, and then reload the records from the text file. ( C) Use the DBCC CHECKIDENT statement to reseed the Sales tables IDENTITY property. ( D) Set the Sales tables IDENTITY_INSERT property to ON.
17、Add new sales records that have the desired key values. 5 You are the administrator of a SQL Server 2000 computer. The server contains a database named Customers, which is used by a custom client/server application.The database contains more than 1 million rows. Users report that the database respon
18、ds slowly when they search for customers by using the application. Users search for customers by scrolling through an alphabetical list of customer names.You use SQL profiles to capture information about how the application uses the database.You receive results as shown in the following screen shot.
19、 You need to improve the applications performance. What should you do? ( A) Create additional nonclustered indexes on the CustomerInformation table. ( B) Rewrite the application so that it uses a user-defined function to return the customer list. ( C) Rewrite the application so that it uses a query
20、with a WHERE clause to search for customer names. ( D) Rewrite the application so that is uses a stored procedure to return the customer list. 6 You are the administrator of a SQL Server 2000 computer. The server contains a database named Contracts. The server is configured as shown in the server co
21、nfiguration exhibit. The database files are configured as shown in the database properties exhibit. The database developers have been creating new tables and indexes without specifying a filegroup.The primary filegroup is reaching its maximum capacity.You want the developers to continue adding new o
22、bjects, but you do not want then to change the way they create objects. You do not want to run out of disk space. You also want to minimize the time it takes to administer the database.What should you do? ( A) Back up the existing objects on the PRIMARY filegroup. Drop them from the database. Re-cre
23、ate them on the SECONDARY filegroup. ( B) Set the file growth on the PRIMARY filegroup to UNLIMITED. ( C) Set the PRIMARY filegroup so that it is read-only. ( D) Set the SECONDARY filegroup as the default filegroup. 7 You are the administrator of a SQL Server 2000 computer. The server contains a Dat
24、a Transformation Services (DTS) package that queries multiple databases and writes the results to a text file. You run this package by using a Microsoft Windows batch file. The batch file uses the dtsrun utility to execute the DTS package. You want to ensure that connection properties, such as login
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 试卷 微软 认证 70228 模拟 答案 解析 DOC
