Try it with 2 single quotes!
select * from users where name = 'o''Conner'
Gordon Radley
-----Original Message-----
From: David_Lin
[mailto:mssqldba-ezmlmshield-x56791072.[Email address protected]
Sent: Friday, April 29, 2005 12:08 PM
To: LazyDBA Discussion
Subject: single quote problem
select * from users where name = 'o'Conner'
As expected, gave me error:
Server: Msg 105, Level 15, State 1, Line 3
Unclosed quotation mark before the character string '
So how should I do for the single quote problem?
Thanks a lot in advance.
David Lin
DBA
Concentra
(972)364-8246
****** CONFIDENTIALITY NOTICE ******
NOTICE: This e-mail message and all attachments transmitted with it may
contain legally privileged and confidential information intended solely
for the use of the addressee. If the reader of this message is not the
intended recipient, you are hereby notified that any reading,
dissemination, distribution, copying, or other use of this message or
its attachments is strictly prohibited. If you have received this
message in error, please notify the sender immediately and delete this
message from your system. Thank you.
---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
Website : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
For additional commands, e-mail: mssqldba-[Email address protected]
MS Sql Server LazyDBA home page