Hi,
I need to insert this command into a table, but I can't because.
insert XXX
set column1 =
isnull(Title,'') +case
when (case when title is null then 1 else 0 end) = 1 then '' else ' ' end+
isnull(Last_name,'') +case
when (case when First_name is null then 1 else 0 end) = 1 then '' else ' ' end+
isnull(First_name,'') +case
when (case when Middle_initial is null then 1 else 0 end)= 1 then '' else ' ' +isnull
(Middle_initial,'') ENDI don't know how to use escape sequence, I need insert just once
thanks

escape characters
claudioe
What excatly do you want to achieve
HTH, Jens K. Suessmeyer.
---
http://www.sqlserver2005.de
---
sdaemon
I want to insert this command into column:
insert tableXXX
set columnZZZ= ' stuff + '' + stuff ' ' + stuff + '1'...'
so I can select this column
select columnZZZ from tableXXX
I can get
stuff + '' + stuff ' ' + stuff + '1'
cheers
Dietz
like this
Insert into tableXXX values(''' stuff + '''' + stuff '' '' + stuff + ''1''...''')
Add extra single quote for every quote appears in the string