Solved

Can you please give me a simple example on "Distributed Transaction" in SQL Server 2000 ?

Posted on 2006-11-25
1
161 Views
Last Modified: 2012-08-14
Can you please give me a simple example on "Distributed Transaction" in SQL Server 2000 ? Think that i am using SQL Server 2000 as one server and MS Access 2003 as another server !!

So there are 2 database servers:

1. SQL Server 2000
2. MS Access 2003

So i want to do "Distributed Transaction" right now by taking table on each of them.


0
Comment
Question by:kishore_peddi
1 Comment
 
LVL 28

Accepted Solution

by:
imran_fast earned 500 total points
ID: 18013681
Create link server on sql 2000 for ms access 2003 database. and name it say LInkedAccess2003
Start MS DTC on both servers

Now begin a transaction

Example inserting records in remote server from local

BEGIN DISTRIBUTED TRANSACTION
insert into openquery ( LInkedAccess2003, 'select employee_no, Name from employees where 1=0')
select emp_no , emp_full_name from employees
COMMIT TRAN
GO
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now