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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to replace single quote with other character

Author  Topic 

raviborra
Starting Member

14 Posts

Posted - 2008-07-03 : 05:30:23
Hi,

I am facing one problem, i need to replace single quote(') with some other character using REPLACE() method.

Could some one help me here.

Thanks in advance,
Ravi.

elancaster
A very urgent SQL Yakette

1208 Posts

Posted - 2008-07-03 : 05:38:08
[code]
declare @a varchar(30)
set @a = 'emma''s test'

select @a,replace(@a,'''','#')
[/code]

Em
Go to Top of Page

raviborra
Starting Member

14 Posts

Posted - 2008-07-03 : 05:48:29
Thanks a lot.
Go to Top of Page
   

- Advertisement -