Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
actual output should come as:hello select * from table
now,the value coming as:hello 'select * from table
webfred
Master Smack Fu Yak Hacker
8781 Posts
Posted - 2009-09-25 : 02:16:24
declare @test varchar(100)set @test='hello ''select * from table'set @test=replace (@test,'''select',' select ')print @testNo, you're never too old to Yak'n'Roll if you're too young to die.