Solved

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

Posted on 2006-11-25
1
163 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

772 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