首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
You are the database administrator for a financial services company. Employees enter data 24 hours a day into a SQL Server 2000
You are the database administrator for a financial services company. Employees enter data 24 hours a day into a SQL Server 2000
admin
2009-05-19
40
问题
You are the database administrator for a financial services company. Employees enter data 24 hours 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\bulk\accts143_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 then 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 the BULK INSERT statement and then set the option equal to 10 percent of the number of rows to be loaded.
答案
B
解析
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: The recommendation to perform the bulk copy operation with the indexes in place depends on the amount of data to be copied into the table compared to the amount of existing data already in the table. The large the amount of data to be loaded into a table, relative to the amount of data already in the table, the more efficient it is to drop all indexes on the table, perform the bulk copy operation, and then re-create the indexes after the data is loaded
C: The BATCHSIZE option of the BULK INSERT statement is used to specify that SQL Server 2000 must treat each batch of rows inserted into the table as a separate transaction. This is useful when errors occur in the bulk copy operation, which would cause the transaction to be rolled back. By specifying the BATCHSIZE option, only the current transaction will be rolled back if an error occurs and the destination table still contains the other batches of rows that were successfully inserted.
D: The ROWS_PER_BATCH option of the BULK INSERT statement SQL Server can be used to
indicate the approximate number of rows in a batch. SQL Server 2000 then optimizes the load automatically, according to the batch size value, which may result in better performance. Although accuracy in the clause is not critical, the larger the batch size is, the better the performance of the bulk copy operation.
转载请注明原文地址:https://kaotiyun.com/show/quhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
Climatechangeissupposedtounfoldslowly,overdecades.Butthatisnottrueupinthegreatwhitenorth,asthoseattending
Severaltypesoffinancialriskareencounteredininternationalmarketing;themajorproblemsincludecommercial,political,an
Ofallthegoodsandservicestradedinthemarketeconomy,pharmaceuticalsareperhapsthemostcontentious.Thoughproducedby
Ofallthegoodsandservicestradedinthemarketeconomy,pharmaceuticalsareperhapsthemostcontentious.Thoughproducedby
BarackObamaspentmuchtimeonthecampaigntrailproposingadramaticvisiontochangenotonlytheUnitedStatesforthebett
EricHansenwritesabouttravelasaparticipatingenthusiastratherthanamereobserver.【T1】Itgivesthesenineessays,based
EricHansenwritesabouttravelasaparticipatingenthusiastratherthanamereobserver.【T1】Itgivesthesenineessays,based
In2016,manyshoppersoptedtoavoidthefreneticcrowdsanddotheirholidayshoppingfromthecomfortoftheircomputer.But
随机试题
漫水道路行车时,应挂高速档,快速通过。
简述广告主题的构成要素。
患者,女,29岁。交通事故致颌面部闭合性损伤合并颅脑损伤,已发生吸入性窒息。应采取的抢救措施是
男,35岁。突发性中上腹痛,1天后出现下腹部疼痛,特别是右下腹痛,诊断为急性阑尾炎入院。患者入院后拒绝手术治疗,行庆大霉素等抗感染治疗,两天后热不退,突然出现寒战、高热、黄疸等症状,体检时发现右上腹压痛明显,伴肝脏肿大,白细胞升高。治疗方案应首先考虑
位于袋形过道内的房间距安全出入口的最大距离为()m
公路工程质量监督,是指依据有关法律、法规、规章、技术标准和规范,对公路工程质量进行监督的行政行为。为加强公路工程质量监督,保证公路工程质量,保护人民生命和财产安全,《公路工程质量监督规定》明确了公路工程质量监督主要包括的内容、交通主管部门对公路工程质量监督
企业领导应该重视数据信息的收集、汇总和分析,以便为决策提供依据,这体现了质量管理体系八项原则中的()原则。
由于资本支出和营业流动资产增加都是企业的投资现金流出,因此它们的合计称为“净投资”。()
根据以下资料,回答问题。2012年规模以上工业中,农副食品加工业增加值比上年增长13.6%,纺织业增长12.2%,通用设备制造业增长8.4%,专用设备制造业增长8.9%,汽车制造业增长8.4%,计算机、通信和其他电子设备制造业增长12.1%,电
(1)在考生文件夹下有一个工程文件sjt3.vbp。其窗体文件上有一个标题为“得分”的框架,在框架中有一个名称为Text1的文本框数组,含6个文本框控件;文本框Text2用来输入难度系数。程序运行时,在左边的6个文本框中输入6个得分,输入难度系数后,单击“
最新回复
(
0
)