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 2000 Forums
 SQL Server Development (2000)
 apostrophes for sql 2000

Author  Topic 

Rita Bhatnagar
Posting Yak Master

172 Posts

Posted - 2001-07-16 : 17:50:39
I tried to use Quotename.It does not return any result.How do i do replace function in sql 2000.It does not take double quote.

i used like that
set @prmSearchString= quotename(@prmSearchString , '''')

Two times it worked but now it does not work.
I have variable coming as
eg puno'shome. This is the ssearch criteria
select * from Table where number<>1 and
Left(name, Len(@prmSearchString) ) = @prmSearchString
Will somebody help me out?
Thanks. in advance


   

- Advertisement -