DataTransformationServiceWord文档格式.docx

上传人:b****1 文档编号:3591214 上传时间:2023-05-02 格式:DOCX 页数:27 大小:408.46KB
下载 相关 举报
DataTransformationServiceWord文档格式.docx_第1页
第1页 / 共27页
DataTransformationServiceWord文档格式.docx_第2页
第2页 / 共27页
DataTransformationServiceWord文档格式.docx_第3页
第3页 / 共27页
DataTransformationServiceWord文档格式.docx_第4页
第4页 / 共27页
DataTransformationServiceWord文档格式.docx_第5页
第5页 / 共27页
DataTransformationServiceWord文档格式.docx_第6页
第6页 / 共27页
DataTransformationServiceWord文档格式.docx_第7页
第7页 / 共27页
DataTransformationServiceWord文档格式.docx_第8页
第8页 / 共27页
DataTransformationServiceWord文档格式.docx_第9页
第9页 / 共27页
DataTransformationServiceWord文档格式.docx_第10页
第10页 / 共27页
DataTransformationServiceWord文档格式.docx_第11页
第11页 / 共27页
DataTransformationServiceWord文档格式.docx_第12页
第12页 / 共27页
DataTransformationServiceWord文档格式.docx_第13页
第13页 / 共27页
DataTransformationServiceWord文档格式.docx_第14页
第14页 / 共27页
DataTransformationServiceWord文档格式.docx_第15页
第15页 / 共27页
DataTransformationServiceWord文档格式.docx_第16页
第16页 / 共27页
DataTransformationServiceWord文档格式.docx_第17页
第17页 / 共27页
DataTransformationServiceWord文档格式.docx_第18页
第18页 / 共27页
DataTransformationServiceWord文档格式.docx_第19页
第19页 / 共27页
DataTransformationServiceWord文档格式.docx_第20页
第20页 / 共27页
亲,该文档总共27页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

DataTransformationServiceWord文档格式.docx

《DataTransformationServiceWord文档格式.docx》由会员分享,可在线阅读,更多相关《DataTransformationServiceWord文档格式.docx(27页珍藏版)》请在冰点文库上搜索。

DataTransformationServiceWord文档格式.docx

Inthisexercise,youwilluseDataTransformationService(DTS)totransformdatafromtheFoodMartSalessampledatabasetotheDWStardatabasethatyouwillcreate.

Estimatedtimetocompletethislab:

45minutes

Exercise1

GettingStarted

Note

Additionalfilesareneededtocompletethisexercise;

thesefilescanbefoundinthelocationinwhichthisdocumentwasopened.

Requirements

1.ThisexerciseisdependenttheFoodMartSalesdatabasethatcanbefoundonHYPERLINK

2.DownloadFoodmart.exe

3.Double-clicktoexecutetheinstallprogram,followthewelcomescreens,andselecttoinstalltheFoodMartSalesOLPTdatabase.

CreatingtheDWStardatabase

1.StartQueryAnalyzerfromtheMicrosoft®

SQLServer™version7.0Group.

2.ConnecttoSQLServerbysupplyingtheSApassword(SQLServerauthentication)orbyusingMicrosoft®

WindowsNT®

Authentication.

3.OpenDWStar.sqlbyclickingFile,Openandselectingthefile.

4.

ExecutethefilebyclickingtheExecuteicon:

5.CloseQueryAnalyzeroncetheexecutionhascompleted.

Exercise2

CreatingaDTSPackage

EachDTSpackagedefinesoneormoretaskstobeexecutedinacoordinatedsequence.TheDTSpackagecanbecreatedmanuallybyusingalanguagethatsupportsOLEautomation,suchasMicrosoftVisualBasic®

developmentsystemorinteractivelybyusingtheDTSwizards.

Allstepsmustbecompetedinordertocompletethislab.

CreatingConnections

1.StartEnterpriseManagerbyselectingitfromtheSQL 

Server7.0Group.

2.Connecttoyourserverbyclickingthe+symboltotheleftofSQLServerGroup,thendouble-clickyourservername,whichwillexpandthetree.

3.Clickthe+symboltotheleftofDataTransformationPackages,andclickLocal.

4.RightclickLocalandselectNewPackage.

5.

TheDTSPackagetoolisdisplayed.DragtheMicrosoftSQLServer7.0Only(OLEDBProvider)icontotheworkareatocreateaconnection(theiconcanbefoundundertheDatataskbarontheleft-handsideofthescreenandlookslikeaserver).

6.ThiswilllaunchtheConnectionPropertiesdialogbox.IntheNewConnectionfield,enterDWStar,selectUseWindowsNTauthentication.ClicktheRefreshbuttontorefreshthelistofdatabases.Next,clickthedrop-downlistfordatabasesandselectDWStar.(Note:

IfyouroperatingsystemisMicrosoftWindows®

95orWindows98,youwillhavetouseSQL 

ServerauthenticationandsupplytheSApassword).

7.ClickOK.

8.Atthispointyourworkareawillhaveoneconnection,andyouwillneedtomakeaconnectionforeachdimensionthatyouwanttopopulate.

9.JustasyoucreatedtheDWStarconnection,youwillcreatethefirstoffiveconnectionsforthesourcedata.

10.DragtheMicrosoftSQL 

Server7.0Only(OLEDBProvider)icontotheworkareatocreatethenewconnection,asyoudidinstepfiveabove;

theConnectionPropertiesdialogboxisnowdisplayed.

11.IntheNewConnectionfieldenterFMS-Time,andselectUseWindowsNTauthentication.ClickRefreshtorefreshthelistofdatabases,andinthedatabasesdrop-downlist,selectFoodMartSales.

12.ClickOK.

13.Tocompletetheremainingconnections:

∙Repeatthestepsabove,enteringFMS-CustomerfortheNewConnectionfield,selectingWindowsNTauthentication,andselectingtheFoodMartSalesdatabaseintheDatabasedrop-downlist.

∙Repeatthestepsabove,enteringFMS-GeographyfortheNewConnectionField,selectingWindowsNTauthentication,andselectingtheFoodMartSalesdatabaseintheDatabasedrop-downlist.

∙Repeatthestepsabove,enteringFMS-ProductfortheNewConnectionfield,selectingWindowsNTauthentication,andselectingtheFoodMartSalesdatabaseintheDatabasedrop-downlist.

∙Repeatthestepsabove,enteringFMS-ProductfortheNewConnectionfield,selectingWindowsNTauthentication,andselectingtheFoodMartSalesdatabaseintheDatabasedrop-downbox.

14.YounowneedtocreateaduplicateconnectiontoDWStarandplaceittotherightofthedesignlayout.Thistime,dragthedatabaseiconasyoudidabove.IntheConnectionPropertiesdialogbox,selectExistingConnection,andinthedrop-downlistbox,selectDWStar.

15.ClickOK.

16.Oncecomplete,arrangetheiconssimilartothefollowingexample.

Exercise3

TransformData

Completeallstepsbeforemovingontothenextexercise.

Connectingconnectionsfordataflow.

1.ClicktheFMS-Timeconnectionthatisnearesttothetopofthescreen(thiswillselecttheicon).

2.PresstheCTRLkeyandclicktheDWStarconnectioninthecenterofthescreen(bothiconsshouldnowbeselected).

3.Right-clicktheDWStariconandselectTransformData.ThiswillcreatedatatransformationflowfromtheFMS-TimeconnectiontotheDWStarconnection.

4.Repeattheabovestepsfortheconnections,FMS-Customer,FMS-Geography,andFMS-Products.

5.CreateonemoredataflowconnectionbetweentheFMS-OrderFactconnectionandtheDWStarconnectionattherightsideofthescreen.

6.Nextyouneedtosettheprecedence,whichmeansthattheFactTablewillnotbepopulatedwithdatauntilalloftheDimensionTablesarecompletedfirst.Todothis,createtheconnectionbetweenDWStar(inthecenterofthescreen)andFMS-OrderFactusingtheCTRLkey,howeverthistimeselectPrecedencefollowedbyOnSuccess.

7.Notethegreenandwhitedashedarrow.

TransformData–TimeDimension

1.Double-clickthearrowbetweentheFMS-TimeandDWStaricons.

2.ThiswillbringuptheTransformDataPropertiesdialogbox.IntheDescriptionfield,enterLoadTimeDimension,andthenselectSQLQuery.

3.Inthisexercise,tosavetime,youwillusequeriesthatarealreadybuilt.UsingNotepad,openLoadDWStar.sql.HighlightthequeryfortheTimeDimensionasshowninthefollowingfigure.

4.CopyandPastethequeryintotheSQLQuerytextfield.

5.ClicktheDestinationtab,andintheTableNamelistboxselect[DWStar].[dbo].[Time].

6.ClicktheColumnMappingtab;

notethatthecolumnsarealreadymappedforyou.

TransformData–CustomerDimension

1.Movingcounterclockwise,double-clickthearrowbetweenthe

FMS-CustomerandDWStaricons.

2.ThiswillbringuptheTransformDataPropertiesdialogbox.IntheDescriptionfield,enterLoadCustomerDimension,andthenselectSQLQuery.

3.Tosavetime,inthisexerciseyouwillusequeriesthatarealreadybuilt.UsingtheNotepadopenLoadDWStar.sql.ScrolldowntoCustomerDimensionandhighlightthequeryasshowninthefollowingfigure.

5.ClicktheDestinationtab,andintheTableNamelistbox,select[DWStar].[dbo].[Customer].

notethatthecolumnsaremappedforyou.

TransformData–GeographyDimension

FMS-GeographyandDWStaricons.

2.ThiswillbringuptheTransformDataPropertiesdialogbox.IntheDescriptionfield,enterLoadGeographyDimension,andthenselectSQLQuery.

3.Inthisexercise,tosavetime,youwillusequeriesthatarealreadybuilt.UsingNotepadopenLoadDWStar.sql.ScrolldowntotheGeographyDimensionandhighlightthequery.

5.ClicktheDestinationtab,andintheTableNamelistbox,select[DWStar].[dbo].[Geography]fromthelist.

TransformData–ProductsDimension

FMS-ProductsandDWStaricons.

2.ThiswillbringuptheTransformDataPropertiesdialogbox.IntheDescriptionfield,enterLoadProductsDimension,andthenselectSQLQuery.

3.Tosavetime,inthisexerciseyouwillusequeriesthatarealreadybuilt.UsingNotepad,openLoadDWStar.sql.ScrolldowntoProductsDimensionandhighlightthequery.

5.ClicktheDestinationtab,andintheTableNamelistboxselect[DWStar].[dbo].[Products].

notethatthecolumnshavebeenmappedforyou.

TransformData–OrdersFact

1.Movingcounterclockwise,double-clickthearrowbetweentheFMS-OrderFactandDWStariconstothefarright.

2.ThiswillbringuptheTransformDataPropertiesdialogbox.IntheDescriptionfield,enterLoadOrdersFactTable,andthenselect

SQLQuery.

3.Inthisexercise,tosavetimeyouwillusequeriesthatarealreadybuilt.UsingNotepad,openLoadDWStar.sql.ScrolldowntoOrdersFactTableandhighlightthequeryasshowninthefollowingfigure.

5.ClicktheDestinationtab,andintheTableNamelistbox,select[DWStar].[dbo].[Orders].

SavingtheTransformationPackage.

1.ClicktheSaveicononthetoolbar.

2.TheSaveDTSPackagedialogboxisdisplayed.InthePackageNamefield,enterTransformFoodMartSales.Forthisexerciseyouwillsavethepackagetotheserver.

3.ClickOK.

4.Torunthenewlycreatedpackagemanually,clicktherunicononthetoolbar.SYMBOL52\f"

Webdings"

\s10.5

5.Duringtheexecutionyouwillseethestatusofexecutiondispla

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2