Viewing 3 posts - 16 through 18 (of 18 total)
something like this?
SELECT cast('<root>' + cast(xmlcol1 as nvarchar(max)) + cast(xmlcol2 as nvarchar(max))+'</root>' as xml) FROM yourtable
December 9, 2008 at 12:18 pm
#909855
I don't think the logic works. here is one it would
insert into @tbl1
select col1 Collate Latin1_General_BIN as col1 from
(
select col1, 2 as col2 from @tbl2
union all
select col1,...
December 9, 2008 at 8:13 am
#909680
I did not check the logic but this fixes your syntax.
insert into @tbl1 select col1 from @tbl2 t2 where not exists (select 1 from @tbl1 where col1 = t2.col1)
December 9, 2008 at 7:35 am
#909637