Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

loading massive files Expand / Collapse
Author
Message
Posted Tuesday, April 16, 2013 1:57 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, April 16, 2013 2:21 PM
Points: 1, Visits: 2
I'm loading server large data files into a db. Some records in some table have carrage returns in the data which is acting like an end of line for the import process. does anyone know a way around this? i'm using bcp
Post #1442993
Posted Tuesday, April 16, 2013 9:24 PM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Monday, November 24, 2014 5:46 AM
Points: 4,031, Visits: 7,172
I can only offer a simple suggestion: use a text editor capable of handling large files and do a search and replace on the carriage returns, then reimport the files using BCP

______________________________________________________________________________
"Never argue with an idiot; They'll drag you down to their level and beat you with experience"
Post #1443082
Posted Tuesday, April 16, 2013 9:46 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 7:18 PM
Points: 35,780, Visits: 32,452
captcooldaddy (4/16/2013)
I'm loading server large data files into a db. Some records in some table have carrage returns in the data which is acting like an end of line for the import process. does anyone know a way around this? i'm using bcp


Are you using a BCP format file?


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1443086
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse