Robin,
Transaction is a server wide concept rather than database wise. It is
perfectly valid to have cross database transaction. As a matter of fact,
one can even condutc cross server/apps distributed transaction using MSDTC
(BEGIN DISTRIBUTED TRAN).
--
Gang He
Software Design Engineer
Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:cs*******************@news.demon.co.uk...
Is it possible to wrap a transaction across 2 database? For example:
BEGIN TRANSACTION
.... alter something in Database_1
.... alter something in Database_2
COMMIT TRANSACTION
or if there is any error:
ROLLBACK TRANSACTION