SQLDTS2000
Programmer
Hi,
I'm using dynamic SP which looks something like this
create sp_select @var as
declare @sqlstatement
select @sqlstatement = 'select '
+ @var
+ 'convert(char(10), coalesce c.city, '') + coalesce(c.address, ''))'
+ 'from table1 c'
execute(@sqlstatement)
I have a problem with the concatenate part. I concatenate the select statement while i also want to use concatenate in the inner portion which i use in the convert statement. Do you know how to resolve this problem? I need that concatenate inside this select statement.
I use sql 2000 analyzer.
Thanks,
Charmine
I'm using dynamic SP which looks something like this
create sp_select @var as
declare @sqlstatement
select @sqlstatement = 'select '
+ @var
+ 'convert(char(10), coalesce c.city, '') + coalesce(c.address, ''))'
+ 'from table1 c'
execute(@sqlstatement)
I have a problem with the concatenate part. I concatenate the select statement while i also want to use concatenate in the inner portion which i use in the convert statement. Do you know how to resolve this problem? I need that concatenate inside this select statement.
I use sql 2000 analyzer.
Thanks,
Charmine