Francisco Tapia
fhtapia at gmail.com
Mon Jul 25 11:23:21 CDT 2005
Within the DTS package you can make this modification, on the transformation object you can specify an ActiveX script for your import, you'll then be able to add code such as "dtstarget("field1") = trim(dtssource("field1")) see books online for detailed info on this :) On 7/22/05, Joe Rojas <JRojas at tnco-inc.com> wrote: > > I have a DTS package that imports data to SS7 from a text file. > The text file is fixed width. > The destination table has varchar fields. > > Is there a way to trim the text data that is coming from the text file > during the import step of the DTS package or should I just add a SQL Task > step at the end of my DTS package to do this? > > Thanks! > JR > > > > > This electronic transmission is strictly confidential to TNCO, Inc. and > intended solely for the addressee. It may contain information which is > covered by legal, professional, or other privileges. If you are not the > intended addressee, or someone authorized by the intended addressee to > receive transmissions on behalf of the addressee, you must not retain, > disclose in any form, copy, or take any action in reliance on this > transmission. If you have received this transmission in error, please > notify > the sender as soon as possible and destroy this message. While TNCO, Inc. > uses virus protection, the recipient should check this email and any > attachments for the presence of viruses. TNCO, Inc. accepts no liability > for > any damage caused by any virus transmitted by this email. > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More...