To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Miscellaneous > General Database Discussions

General Database Discussions Discuss any database topic not covered in any other forum on this site

Reply Post New Thread
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-02-2003, 09:39 AM
ryand09 ryand09 is offline
Registered User
 
Join Date: Jan 2003
Location: UK
Posts: 55
Carraige Returns

I got a VarChar field which can take up to 1000 characters. The problem is that users are putting in carraige returns into their text. When I down load the data from a web page (using Cold Fusion) to excel, the carraige return is taking the text on to a new line. Is there a way I can run an update query or some how eliminate the carraige returns in the dB field.

Thankd in advance.
Reply With Quote
  #2  
Old 04-02-2003, 06:20 PM
rwendel rwendel is offline
Member
 
Join Date: Mar 2003
Location: Jacksonville, Florida
Posts: 52
What database?

What database are you using?

And what programming language are you using to interact with this database?

The first step is to modify the code that you are using to INSERT into this table, making it swap the '\n\r' for ' '.

Second thing might just be to just right a simple code to select all of the records (all you need is the Primary Key and the VarChar field you are having the issue with, or if you really want just the VarChar field). Load that into whatever data structure you are using to access the Record Set, then go one by one and simply change the data, and update all of the fields through a while loop that uses the same, variable update statement.


Last edited by rwendel; 04-02-2003 at 06:33 PM.
Reply With Quote
Reply Post New Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:31 AM.


DatabaseJournal Recent Articles


 » Searching and Sorting Strings in Oracle

 » Preparing To Upgrade Access Tables to SQL ...

 » Sun Expands MySQL With Closed Source

 » Microsoft Demos New SQL Server Features at...

 » Wipro and Oracle Launch First Joint Innova...

Search Database Journal:
 





Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.