Thanks,
MorganC02
Begin Distributed Trans A
Insert LinkedServer.Database.dbo.table1 (col1, col2, col3)
Select col1, col2, col3 FROM #tmpTable1
Insert LinkedServer.Database.dbo.table2 (col1, col2, col3)
Select col1, col2, col3 FROM #tmpTable1
-- on local server
Update table3 SEt .... Where ....
If @errnum <> 0 then rollback tran A Else commit tran A.
Bug-
http://support.microsoft.com/default.aspx?scid=kb;EN-GB;q279857
Fixed in SQL 7.0 SP3-
http://support.microsoft.com/default.aspx?scid=kb;EN-GB;Q256649
--
Darren Green (SQL Server MVP)
http://www.sqldts.com
(Which version of SQL Server? What is the full error message?)
We may actually have some weird thing going on our server because this appears to be an intermittment problem. The code worked one day, stopped working one day, and is now working again. I didn't change any code. Grrr ...
One thing I did change was the Select that I was using to insert data into a table on a linked server. I changed from using a distributed join with local temp tables and tables on the linked server to saving the data I needed from the linked server in local temp tables and using all local temp tables to select data for my insert into a table on the linked server.
Thanks for the information.
Charlene
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Try placing a call to Product Support Services (PSS). They might have some
more info...