dbTalk Databases Forums  

Remove commas during data transfer?

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


Discuss Remove commas during data transfer? in the microsoft.public.sqlserver.dts forum.



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

Default Remove commas during data transfer? - 03-11-2005 , 01:27 PM






I have some tables that keep failing when I try to copy them to another SQL
server using DTS. I've identified a pattern that the first failing row in
the problem tables always has a comma in one of the nvarchar fields. I'd
like to try to write a dts package that would filter out all the commas. I'd
appreciate any pointers on exactly how to do this.

Wayne



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

Default Re: Remove commas during data transfer? - 03-12-2005 , 12:27 AM






What datatype are you going from and to?
SQL Server --> SQL Server?


REPLACE() would get rid of commas



"Wayne Wengert" <wayneDONTWANTSPAM (AT) wengert (DOT) com> wrote


Quote:
I have some tables that keep failing when I try to copy them to another SQL
server using DTS. I've identified a pattern that the first failing row in
the problem tables always has a comma in one of the nvarchar fields. I'd
like to try to write a dts package that would filter out all the commas. I'd
appreciate any pointers on exactly how to do this.

Wayne


Reply With Quote
  #3  
Old   
Wayne Wengert
 
Posts: n/a

Default Re: Remove commas during data transfer? - 03-12-2005 , 04:06 AM



Thanks Allan - yes, it is SQL Server -> SQL Server

Wayne

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
What datatype are you going from and to?
SQL Server --> SQL Server?


REPLACE() would get rid of commas



"Wayne Wengert" <wayneDONTWANTSPAM (AT) wengert (DOT) com> wrote in message
news:wayneDONTWANTSPAM (AT) wengert (DOT) com:

I have some tables that keep failing when I try to copy them to another
SQL
server using DTS. I've identified a pattern that the first failing row
in
the problem tables always has a comma in one of the nvarchar fields. I'd
like to try to write a dts package that would filter out all the commas.
I'd
appreciate any pointers on exactly how to do this.

Wayne




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 - 2013, Jelsoft Enterprises Ltd.