首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
55
问题
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://kaotiyun.com/show/duhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
Thenewaircraftrepresentsa$250mbetbyBombardierthatMexicocouldprovidenotjustroutinelabourbutmanufacturingthat
AlmosteveryyearsincetheendofthefinancialcrisishasstartedwithrosyexpectationsamongAmericanforecasters,andthis
SupposetheMartialArtAssociationinyouruniversitywantstorecruitnewmembers.Writeanadtoallstudentsto1)infor
Supposeyouarethepersonnelmanagerofacompanyandyou’vedecidedtheapplicantnamedZhangWeiisthebestcandidateforth
SupposetheMartialArtAssociationinyouruniversitywantstorecruitnewmembers.Writeanadtoallstudentsto1)infor
EricHansenwritesabouttravelasaparticipatingenthusiastratherthanamereobserver.【T1】Itgivesthesenineessays,based
Theroughguidetomarketingsuccessusedtobethatyougotwhatyoupaidfor.Nolonger.Whiletraditional"paid"mediasuchas
Youdoapart-timejobinWZMartinyoursparetime.YouareaskedtowritealettertowelcomeyournewcustomerMr.Goslingo
Insectsaredisappearing.Theworldhas25percentfewerterrestrialinsectsnowthanin1990.Thisincludesthosewerelyon
Guest账户和Administrator账户一样是由系统建立的,不能被禁用。
随机试题
在XCZ-102型动圈式显示仪表安装位置不变的情况下,每安装一次测温元件时,都要重新调整一次外接电阻的数值。当配用热电偶时,使R外为();当配用热点阻时,使R外为()。
男性患者,10岁,3周前受凉后出现“感冒”样症状,近日突发皮肤及牙龈出血。查:体温37℃,肝、脾不大;Hb125g/L,WBC正常,PLT20×109/L。骨髓:增生活跃,巨核细胞增多,幼稚型占30%,本病治疗应首先采用
静脉注射丙种球蛋白的禁忌证是
甲到本村乙家买柴油时,因屋内光线昏暗,甲欲点燃打火机看油量。乙担心引起火灾,上前阻止。但甲坚持说柴油见火不会燃烧,仍然点燃了打火机,结果引起油桶燃烧,造成火灾,导致甲、乙及一旁观看的丙被火烧伤,乙、丙经抢救无效死亡。后经检测,乙储存的柴油闪点不符合标准。甲
[2012年第031题]我国塔式高层住宅的平面形式中,T形、Y形、.蝶形多用于北方地区,正十字形、井字形、风车形多用于南方地区,其最主要的制约因素是:
常用的风险识别方法有哪些?
()是指由收购人与上市公司特定的股票持有人就收购该公司股票的条件、价格、期限等有关事项达成协议,由公司股票的持有人向收购者转让股票,收购人支付资金,达到收购的目的。
2014年6月,某化妆品生产企业(增值税一般纳税人)销售化妆品,开具的增值税专用发票上注明的价款为40000元,另外收取包装物押金3627元,该化妆品生产企业与购买方签订合同,要求3个月内返还包装物;从小规模纳税人处购进生产用原材料,取得税务机关代开的增值
在一段时间内有10架飞机飞过,其中6架为敌机,雷达报告到其中的5架,并把2架民用机误报为敌机。增加信号的先验概率会使()
Stressiswithusallthetime.Itcomesfrommentaloremotionalactivityaswellasphysicalactivity.Itisuniqueandperson
最新回复
(
0
)