首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
You are the administrator of a SQL Server 2000 computer. The server contains a database that stores financial data. You want to
You are the administrator of a SQL Server 2000 computer. The server contains a database that stores financial data. You want to
admin
2009-05-19
32
问题
You are the administrator of a SQL Server 2000 computer. The server contains a database that stores financial data. You want to use Data Transformation Services packages to import numeric data from other SQL server computers. The precision and scale values of this data are not defined consistently on the other servers.
You want to prevent any loss of data during the import operations. What should you do?
选项
A、Use the ALTER COLUMN clause of the ALTER TABLE statement to change data types in the source tables. Change the data types so that they will use the lowest precision and scale values of the data that will be transferred.
B、Use the ALTER COLUMN clause of the ALTER TABLE statement to change data types in the destination tables. Change the data types to reflect the highest precision and scale values involved in data transfer.
C、Set a flag on each DTS transformation to require an exact match between source and destination columns.
D、Set the maximum error count for each DTS transformation task equal to the number of rows of data you are importing. Use an exception file to store any rows of data that generate errors.
E、Write Microsoft ActiveX script for each DTS transformation. Use the script to recast data types to the destinations precision and scale values.
答案
B
解析
Explanation: The ALTER COLUMN clause of the ALTER TABLE statement can be used to change the definition of a column and can be used to alter the precision and scale values of the data types. The destination precision should be changed so no data would be lost. The transformation to a data type with higher precision is automatic and would not require any coding.
Note: The precision of the data type refers to the number of digits in a number while the scale is the number of digits to the right of the decimal point in a number. Thus the number 702.85 has a precision of 5 and a scale of 2. The default maximum precision of numeric and decimal data types is 38.
Incorrect Answers:
A: The ALTER COLUMN clause of the ALTER TABLE statement can be used to change the definition of a column and can be used to alter the precision and scale values of the data types. However, we want to prevent any loss of data therefore we need to ensure that the data being imported correlates with the definition of the destination column. If it does not, any constraint that might exist on the destination column will prevent the data from being inserted.
C: Setting DTS transformation to require an exact match between source and destination columns refers to the data in the columns.
D: When the a maximum error count value for a DTS transformation task specifies the sum of row-level errors detected by the Transform Data task and batch failures. When the Max error count value is exceeded, DTS task execution is terminated. Because rows containing errors detected by the DTS transformation task are discarded before batch submission, these errors do not trigger nor count as batch failures. Errors caught at the destination will fail the batch and add one to the error count regardless of how many rows are in the batch.
E: Recasting data types to the destinations precision could result in loss of data. The destination precision should be changed so no data would be lost.
Note: The capabilities of a Data Transformation Service package can be extended by using
Microsoft ActiveX scripts that implement the objects, properties, methods, and collections of the DTS object model. With ActiveX scripts the data can be formatted and transformed as it is copied from its source to the destination location.
An ActiveX script transformation applies to tasks that work on the source data on a row-by-row basis and can be used to replace a two-digit state code in the source data with the legal abbreviation of the state in the destination data; set columns to a default of spaces, validate important columns in the source data and skip records that contain invalid data to prevent them from being copied to the destination, and alter the precision and scale values of data as the data copied from the source to the destination.
转载请注明原文地址:https://jikaoti.com/ti/swO7FFFM
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
Whenpeopletalkabouta"north-southdivide"inBritain,theyusuallyrefertohouseprices,employmentandtheratioofprivat
Directions:Writeanessaybasedonthedrawing.Inyourwriting,youshould1)describethedrawingbriefly,2)exp
Writeanessaybasedonthechart.Inyourwriting,youshould1)describethediagram,and2)giveyourcomments.Y
In2016,manyshoppersoptedtoavoidthefreneticcrowdsanddotheirholidayshoppingfromthecomfortoftheircomputer.But
MireilleGuiliano,achampagnecompanyexecutive,capturedtheattentionoffrustrateddieterswithherjoyoflifeinthe2005
Thehumanbraincontains10thousandmillioncellsandeachofthesemayhaveathousandconnections.Suchenormousnumbersused
Thehumanbraincontains10thousandmillioncellsandeachofthesemayhaveathousandconnections.Suchenormousnumbersused
Adealisadeal—except,apparently,whenEntergyisinvolved.Thecompany,amajorenergysupplierinNewEngland,provokedjus
Parentsarenottheonlyonesresponsiblefortheirchildren.Oursocialresponsibilityisatitsgreatestwhenparentsareunab
随机试题
某机场建设工程位于丘陵地带,飞行区指标为4D。跑道结构为:沥青混凝土柔性道面面层;石灰粉煤灰稳定碎石基层。施工工期比较紧张。由于工期紧迫,施工单位编制的施工组织设计经项目经理部经理签批后开始准备施工。施工正值雨季,施工单位做了雨期施工准备,购置了防雨设备,
女性,37岁,1年前诊断为再生障碍性贫血,经治疗好转。2个月来乏力、头晕加重,间有酱油色尿。查:血红蛋白60g/L,白细胞4×109/L,血小板60×109/L,网织红细胞84%,骨髓增生活跃,细胞外铁阴性。对该患者下述检查最有意义的是
有关体液的描述,正确的是
A.法定代表人或企业负责人B.质量管理人员C.企业质量管理部门负责人D.企业质量负责人在药品批发企业中,人员资质要求为“应当是具有大学本科学历、执业药师资格和3年以上药品经营质量管理工作经验”的是()。
药品监督管理部门经监督抽验发现,某医院使用的人血白蛋白注射液中的白蛋白含量仅为7.02%(g/ml),应()。
某患者在就诊过程中,护士没有询问患者有无青霉素过敏史,即为患者做青霉素试验,造成患者休克死亡。护士的医疗过失行为所占的比重是()。
会计是以()为主要计量单位,核算与监督一个单位的经济活动的一种经济管理工作。
某造纸企业2001年实现销售收入100万元,实际发生广告费支出5万元,则该项企业2001年计算应纳税所得额时可以税前扣除广告费为( )。
【福泽谕吉】北京大学2003年世界近现代史真题
以下关于“以事实为依据,以法律为准绳”的司法原则,理解不正确的是()
最新回复
(
0
)