Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Can't insert special characters

Author  Topic 

bigcat
Starting Member

1 Post

Posted - 2007-01-02 : 02:06:47
Hi, I'm new here. Happy new year!

Simple question. I can not insert special characters such as ' " ( ) etc. What special escape I need to put in my sql statement?

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-01-02 : 02:26:56
You have to escape them by adding one more quote literal.

For example:
Select 'D''souza'


Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

rajith
Starting Member

2 Posts

Posted - 2007-01-02 : 03:12:02
where u want to put that special characters ... let it explain...
Go to Top of Page
   

- Advertisement -