![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| ||||
| ||||
|
|
I am fairly new to DTS, but have created a package that imports from eight text files on a nightly basis into temp tables. The files are created by |
|
At any rate, when I click on my text file source, my SQL Connection, and add a "Transform Data" task, the default is to copy data -- whereas I want |
|
Failing an easy way to do this, I have a Windows "sed" equivalent (BK ReplaceM) replacing the whitespace in the text files prior to the data |
|
Many thanks. Platform is SQL2K SP3. Feel free to reply direct to hauerwas (AT) studentweb (DOT) providence.edu. Adam Hauerwas |
#2
| |||
| |||
|
|
Allan, Thank you for the quick reply! I have found http://www.sqldts.com very helpful (and dense!), and appreciate your work greatly. So, do you think the pre-pump "sed" is the best for reproducibility? Or alternatively, is there a way that I could programmatically rtrim(ltrim(*)) |
|
Thanks again, Adam Hauerwas "Allan Mitchell" wrote: You cannot make the Trim String transformation the default. Yes you can globally change then transformations but this will involve the object model OR Disconnected Edit use and I think you want to stay away from that. -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. |
#3
| |||
| |||
|
|
With text files I always import into a staging table first. I then perform my manipulations from there. Why can you not just set up the correct type of transformation when you build the package? |
#4
| |||
| |||
|
|
Maybe I could, and I'm just missing something. But it seems that to set up the transformations when I build the package I would need to a) delete |
|
Excuse my inexperience, please -- I may be missing something basic here. "Allan Mitchell" wrote: With text files I always import into a staging table first. I then perform my manipulations from there. Why can you not just set up the correct type of transformation when you build the package? |
#5
| |||
| |||
|
|
Maybe I could, and I'm just missing something. But it seems that to set up the transformations when I build the package I would need to a) delete |
|
Excuse my inexperience, please -- I may be missing something basic here. "Allan Mitchell" wrote: With text files I always import into a staging table first. I then perform my manipulations from there. Why can you not just set up the correct type of transformation when you build the package? |
![]() |
| Thread Tools | |
| Display Modes | |
| |