SQL Server may be able to do remote transactions, but I was referring to a broader scenario, where you're trying to run a transaction on both Oracle and SQL Server for example.
Executing multiple calls requires you to use ADO.NET transactions, or some other transaction manager. Consider this:
Code:
// ADO.NET
// Execute First Stored Procedure
// Execute Second Stored Procedure
-- Stored Procedures
-- Procedure 1
-- Create Transaction
DELETE FROM SomeTable
-- Procedure 2
-- Create Transaction
UPDATE SomeOtherTable bla bla
In this example, .NET code calls two stored procedures. Each Stored Procedure uses a transaction to protect the integrity of the data the procedure is responsible for. But how do you synch the two calls? How do you roll back the first transaction when the second fails?
Because there is no connection between the two calls to the procedures, you'll need an ADO.NET transaction to run both procedures correctly and safely.
Does this help?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.