?
Solved

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

Posted on 2006-11-25
1
Medium Priority
?
171 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
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 UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

840 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