
64
LESSON 7 Solving Common SSiS SCenarioS
FIGURE 76
22. Accept the default of 0 from the column labeled Index. Click OK.
23. Right-click in the Connections Manager section of the control flow.
24. Select New File Connection. The File Connection Manager Editor will appear.
25. Select Create File from the drop-down list labeled “Usage type.”
26. Paste or type the following in the text box labeled File: C:\Lesson7\Archive\FileOne.txt.
27. Rename the file connection to Archive.
28. Right-click the file connection and select Properties.
29. Locate Expression in the Properties window. Click the ellipsis.
30. In the Property column, select ConnectionString.
31. Click the ellipsis in the column labeled Expression.
32. Type or paste the following value in the text box labeled Expression:
@[User::DestinationFileLocation]+”\\“+ @[User::SourceFileName]+”_
“+ (DT_WSTR, 4) DATEPART(“yyyy”, GETDATE())+(DT_WSTR, 2) DATEPART
(“mm”, GETDATE())+(DT_WSTR, 2) DATEPART(“dd”, GETDATE())+”.txt”
Click OK twice.
889633c07.indd 64 8/16/10 9:13:36 PM