?
Solved

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

Posted on 2006-11-25
1
Medium Priority
?
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

765 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