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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with single quote

Status
Not open for further replies.

daka94

Programmer
Apr 27, 2001
33
US
hai,
when i am sending any text which contains single quotes in to the field type text.it is giving error.what type of data type i has to take when i am passing text which contains single quotes.
please help me
thank u
 

Do you refer to embedded quotes such as in the word can't in the following sentence?

'I can't make this sentence work in SQL Server. Help!'

Replace the embedded single quote with two single quotes.

'I can''t make this sentence work in SQL Server. Help!'

That will work in SQL Server. Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it if you have time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top