Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
hl19521985
Starting Member
6 Posts |
Posted - 2013-12-28 : 04:45:50
|
beginset xact_abort ONset nocount on;declare @t2 as t2begin distributed tran--create table #t1 (a int); insert into @t2 exec [LINK-212].[AdventureWorks].dbo.test -- update [LINK-212].AdventureWorks.dbo.t1 set a=2 -- insert into [LINK-212].AdventureWorks.dbo.t1 values (1);select * from @t2 commit tran endError FOLLOW:?????"LINK-212"? OLE DB ???? "SQLNCLI10" ????? "???????"??? 7391,?? 16,?? 2,? 8 ????????,??????? "LINK-212" ? OLE DB ???? "SQLNCLI10" ?????????? |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-12-28 : 05:13:54
|
is test a procedure you created on linked server [LINK-212]?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
hl19521985
Starting Member
6 Posts |
Posted - 2013-12-31 : 09:24:25
|
yes |
|
|
hl19521985
Starting Member
6 Posts |
Posted - 2013-12-31 : 10:33:02
|
you can help me ? |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-12-31 : 13:07:34
|
First test if linked server is active.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
hl19521985
Starting Member
6 Posts |
Posted - 2013-12-31 : 22:04:12
|
beginset xact_abort ONset nocount on;declare @t2 as t2begin distributed tran--create table #t1 (a int);exec [LINK-212].[AdventureWorks].dbo.test-- update [LINK-212].AdventureWorks.dbo.t1 set a=2-- insert into [LINK-212].AdventureWorks.dbo.t1 values (1);select * from @t2commit tranendthis is ok |
|
|
hl19521985
Starting Member
6 Posts |
Posted - 2013-12-31 : 22:05:27
|
begin----this is error-----set xact_abort ONset nocount on;declare @t2 as t2begin distributed tran--create table #t1 (a int);insert into @t2exec [LINK-212].[AdventureWorks].dbo.test-- update [LINK-212].AdventureWorks.dbo.t1 set a=2-- insert into [LINK-212].AdventureWorks.dbo.t1 values (1);select * from @t2commit tranend ----this is error----- |
|
|
hl19521985
Starting Member
6 Posts |
Posted - 2013-12-31 : 22:10:13
|
Does not support distributed development------------- Thus the error. . . . . . .insert into @ t2exec [LINK-212]. [AdventureWorks]. dbo.test Such implementation is normal --------exec [LINK-212]. [AdventureWorks]. dbo.test |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2014-01-01 : 11:07:14
|
Do you've MSDTC (Microsoft Distributed Transaction Coordinator) service installed and running on the machine? Otherwise you wont be able to implement distributed transactions like above.Go to start - > run type services.msc and see if you've Distributed Transaction Coordinator listed among installed services.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|