March 6, 2007 at 4:05 pm
Hi,
I have a web application that runs on SQL2k. The application failed when system tries to insert data into table if the name has aspotroph on it.
Ex. 'Sonya's Revenge'
Will this will be taken care if I set the quote identifier on from db option?
Please help!
Thanks,
Minh
March 6, 2007 at 4:55 pm
No, it won't help.
Not using dynamic SQL and avoiding ad-hoc queries will.
_____________
Code for TallyGenerator
March 6, 2007 at 5:24 pm
Minh: Search the site forums for "apostrophe", and you will get lots of useful information.
March 6, 2007 at 7:19 pm
Thanks for the input. I talked to our programmer, they could easily handle that in the code by replacing single quote with double quote.
March 8, 2007 at 9:03 am
Hi ,
use a replace function where u r populating the data into table.. e.x..
Select Replace('abc''nhju','''','''''') or
remove the apostrophee..from name
Select Replace('abc''nhju','''','')
Regards ,
Amit Gupta..
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply