Sql server Linked Server Issue

Vinod Mallolu 1 Reputation point
2021-11-18T16:24:08.757+00:00

Hello Experts,
I have a linked server between server1 and server2.

Sql server 2012 with sp4

Linked server is working fine for everything.

But when trying to insert from server1 to server2
With
Begin Tran, it’s not allowing to insert. Is there a limitation?

Tried Begin Distributed transaction as well.

Not working.

Please help.

Thanks in advance.
Vinod

SQL Server | Other
{count} votes

2 answers

Sort by: Most helpful
  1. YufeiShao-msft 7,151 Reputation points
    2021-11-19T02:44:10.903+00:00

    Hi @Vinod Mallolu

    If you can describe your error in detail, we will be able to help you more accurately, so what kind of error alert did it give you?

    Please note that your firewall may prevent you from doing so

    When you start distributed transactions that involve SQL Server Database Engine as a resource, you might encounter various error messages if the MSDTC configuration is not correct.
    https://support.microsoft.com/en-us/topic/recommended-msdtc-settings-for-using-distributed-transactions-in-sql-server-79ec3905-ab14-00b6-d5e3-14e549f53882

    Here is an error that may be relevant to you:
    https://social.msdn.microsoft.com/Forums/en-US/f66a228d-0ae7-4e6e-a4ee-30a03279168b/how-to-insert-a-record-into-table-from-one-server-to-another-server-in-trigger-


  2. Olaf Helper 47,586 Reputation points
    2021-11-19T07:07:15.09+00:00

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.