nrana
03-23-2010, 12:28 PM
I am using sql server 2005 and this is my problem:
i have a variable defined as nVarchar
e.g. @name = nVarchar (1000)
single quotes can be inserted into that variable as values
e.g. sandra's world
is there a way to use a replace function so when i select that variable i can replace that single quote with space?
e.g.
declare @name nVARCHAR(1000)
set @name ='sandra''s world'
right now when i select @name it pulls as : sandra's world
how do i select @name so it pulls as : sandra s world
your help is highly appreciated.
Thanks.
i have a variable defined as nVarchar
e.g. @name = nVarchar (1000)
single quotes can be inserted into that variable as values
e.g. sandra's world
is there a way to use a replace function so when i select that variable i can replace that single quote with space?
e.g.
declare @name nVARCHAR(1000)
set @name ='sandra''s world'
right now when i select @name it pulls as : sandra's world
how do i select @name so it pulls as : sandra s world
your help is highly appreciated.
Thanks.