Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

single code problem

Status
Not open for further replies.

parames

MIS
Jun 26, 2000
71
MY

Hi list,
I need to transfer data from txt file to my database.
Most of the data is somesort like this:

GD3025006861168K|SITS01|220164 |DEL:EXPORT PACKING, FOR MONTH OF DEC'00

I use the split function to split the data..

The problem is, my sql statement stops running whenever there is a single code (') in my .txt file and prompt error message. Some of the data don't have the single code ..

How to solve this problem..

thanks a lot,
Parames.s
 
Try to place Server.URLEncode around the variables you send to the SQL query, it should escape the single quotes. Hope this helps...


<webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top