I have 2 SQL Server 2005, I want to pull data from A to B.
I execute this code on B.:
create table #res (
ValueID int,
[Timestamp] varchar(32),
RealValue float,
Quality int,
Flags int
);
insert into #res(ValueId, [Timestamp], [RealValue], [Quality], [Flags])
exec ('exec [CC_ExternalBrowsing].[dbo].[cc_sp_readtags] @List=''1;2;3;4;5'', @TimeBegin=''0000-00-00 00:05:00.000'', @TimeEnd=''0000-00-00 00:00:00.000''') AT [WINCCTESZT]
select * from #res;
drop table #res
Exec part runs fine (without the previous insert line). I can see data in SSMS, but I can't insert data into the temp table
I get this error:
The procedure 'sys.addlinkedserver' cannot be executed within a transaction.
Any ideas?
Thanks
Zui