首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
Exhibit: BULK INSERT Ezonexam.dbo.employees FROM ‘tk\africe\fubar512.txt’ WITH DATAFILETYPE = ‘char’, FIELD/TERMINATOR = ‘\t’, R
Exhibit: BULK INSERT Ezonexam.dbo.employees FROM ‘tk\africe\fubar512.txt’ WITH DATAFILETYPE = ‘char’, FIELD/TERMINATOR = ‘\t’, R
admin
2009-05-19
113
问题
Exhibit:
BULK INSERT Ezonexam.dbo.employees
FROM ‘tk\africe\fubar512.txt’
WITH DATAFILETYPE = ‘char’,
FIELD/TERMINATOR = ‘\t’,
ROWTERMINATOR = ‘\n,’
TABLOCK
You work as database administrator at Ezonexam.com. You handle one SQL Server 2000 computer.
How should you improve the performance of the query in the exhibit above?
A. Extend the BULK INSERT statement with the BATCHSIZE option set it to equal to 5 percent of the number of rows to be loaded.
B. Extend the BULK INSERT statement with the BATCHSIZE option set it to equal to 10 percent of the number of rows to be loaded.
C. Extend the BULK INSERT statement with the ROWS_PER_BATCH option set it to equal to 5 percent of the number of rows to be loaded.
D. Extend the BULK INSERT statement with the ROWS_PER_BATCH option set it to equal to 10 percent of the number of rows to be loaded.
E. Insert a line before the BULK INSERT statement that drops the indexes for the customers table. Insert a line after the BULK INSERT statement that recreates the indexes for the customers table.
F. The TABLOCK option should be removed.
G. The ROWTERMINATOR line should be removed.
选项
答案
F
解析
Explanation: The TABLOCK hint increases the number of locks during the adding process. This is the reason why response time are slows down during this process. By removing the TABLOCK hint the default more granular row-level lock will be used. This would decrease the scope of the locks which would result in less waiting jobs and performance would improve.
Note: The BULK INSERT statement is used to copy a data file into a database table or view in a format specified by the user. The BULK INSERT statement accepts the TABLOCK hint, which allows the user to specify the locking behavior that the BULK INSERT statement should use. TABLOCK specifies that a bulk update table-level lock is taken for the duration of the bulk copy. If TABLOCK is not specified, the default uses row-level locks.
Incorrect Answers:
A, B, C, D: Effect would not be large
E: Some improvement, but not the best answer.
G: Would make the batch to stop working.
转载请注明原文地址:https://www.kaotiyun.com/show/6uhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
Severaltypesoffinancialriskareencounteredininternationalmarketing;themajorproblemsincludecommercial,political,an
Evenbeforetheopeningceremony,arecordhadbeenbrokenatSochi:12newevents,themostforanyOlympics,werescheduledto
[A]Enduringproblemssuchaswar,poverty,andviolenceultimatelyspringfromhumannature,whichnotechnologicalinnovation
WhentheresidentsofBuenosAireswanttochangethepesostheydonottrustintothedollarstheydo,theygotoacueva,or"
OfferingHelpWritealetterofabout100wordsbasedonthefollowingsituation:YourroommateKenismovingtoanother
"Thisisareallyexcitingtime—aneweraisstarting,"saysPeterBazalgette,thechiefcreativeofficerofEndemol,thetelev
TheU.S.PostalService(USPS)continuestobleedredink.Itreportedanetlossof$5.6billionforfiscal2016,the10thst
Whateverhappenedtothedeathofnewspaper?Ayearagotheendseemednear.Therecessionthreatenedtoremovetheadvertising
Guest账户和Administrator账户一样是由系统建立的,不能被禁用。
随机试题
对角径小于11.5cm骨盆各径线均较正常低值少2cm
牙本质中龋时,牙本质牙髓复合体产生的变化是
A.主承托区B.副承托区C.缓冲区D.边缘封闭区E.后堤区支持力较差。只能承担一小部分力
严重的低渗性缺水,补足血容量后应输入
肾上腺素和异丙肾上腺素的共同适应证是()。
边坡按工程地质分类可划分为:[2010年第41题]
在实际工作中,规模大、业务复杂的单位,可以使用一种格式的通用记账凭证。()
A公司管理层2015年11月1日决定停产某车间的生产任务,提出职工没有选择权的辞退计划,规定拟辞退生产工人100人、总部管理人员5人,并于2016年1月1日执行。该辞退计划已经通知相关职工,并经董事会批准,辞退补偿为生产工人每人5万元、总部管理人员每人20
班主任工作的中心任务是()。
强调课程应满足学生的需要和自我实现的课程观是结构主义课程观。()
最新回复
(
0
)