dbTalk Databases Forums  

String Trim not working in DTS package

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss String Trim not working in DTS package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joel
 
Posts: n/a

Default String Trim not working in DTS package - 04-30-2004 , 05:51 PM






I used the DTS wizard to create a DTS package that would use string trim to remove leading spaces in strings in a column. First I configured it to make the transformation to the same column on the same table in the same database. The DTS package appeared to hang and didn't finish after waiting for 20 minutes. I canceled the job. Then I configured the package to make the xformation and write the new column to a identical table in a different database (identical). The package appeared to finish and said that 7260 rows affected which is the correct number of rows. But when I looked at the table, there were still leading spaces in the strings, in other words the strings looked as if nothing had been done except the column was transferred with no string trim transformation

So does anybody have an idea where I went wrong?

Reply With Quote
  #2  
Old   
Rand Boyd [MSFT]
 
Posts: n/a

Default RE: String Trim not working in DTS package - 05-03-2004 , 11:47 AM






I am assuming you used an ActiveX script to do the transformation. If so,
can you post the script?

Rand
This posting is provided "as is" with no warranties and confers no rights.


Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: String Trim not working in DTS package - 05-03-2004 , 12:20 PM



Rand

Not necessarily. In Shiloh there is a "Trim String" transformation.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Rand Boyd [MSFT]" <rboyd (AT) onlinemicrosoft (DOT) com> wrote

Quote:
I am assuming you used an ActiveX script to do the transformation. If so,
can you post the script?

Rand
This posting is provided "as is" with no warranties and confers no rights.




Reply With Quote
  #4  
Old   
joel
 
Posts: n/a

Default Re: String Trim not working in DTS package - 05-03-2004 , 02:46 PM



I'm using the string trim transformation in the DTS. But Its not working as well as I would like. Unfortunately I need to update the column where the string is trimmed so that in a row the old value is replaced with the new version that has the leading white spaces trimed, I all I see available is a "copy column" which appends the string trimmed values to new rows - I want to replace them in the original rows.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.