Click here to Skip to main content
15,891,567 members
Home / Discussions / Database
   

Database

 
GeneralOops Pin
David Mujica19-Dec-08 4:38
David Mujica19-Dec-08 4:38 
GeneralRe: Wrap the logic in TSQL Pin
Ashfield19-Dec-08 5:02
Ashfield19-Dec-08 5:02 
GeneralRe: Wrap the logic in TSQL Pin
Wendelius19-Dec-08 5:10
mentorWendelius19-Dec-08 5:10 
QuestionInstall SQL Database automatically...... [modified] Pin
grks18-Dec-08 20:52
grks18-Dec-08 20:52 
QuestionLinking tables properly with foreign keys Pin
mevatron118-Dec-08 7:28
mevatron118-Dec-08 7:28 
AnswerRe: Linking tables properly with foreign keys Pin
Wendelius18-Dec-08 8:29
mentorWendelius18-Dec-08 8:29 
Questionsqltransaction.rollback in terms of programming sequence of actions Pin
vjvjvjvj18-Dec-08 3:42
vjvjvjvj18-Dec-08 3:42 
AnswerRe: sqltransaction.rollback in terms of programming sequence of actions Pin
Wendelius18-Dec-08 9:11
mentorWendelius18-Dec-08 9:11 
If I understood correctly, based on your description you need distributed transactions. You start a transaction, perform all operations on all databases and commit after that. MS DTC will take care of the transaction coordination.

In the semi-code you have commit at the end of SubFun1 which will result to commit point in DB1, and DB2 will have it's own transaction. Instead of using database scoped SqlTransaction, have a look at System.Transactions Integration with SQL Server[^].

Mika

The need to optimize rises from a bad design.My articles[^]

QuestionSQLDMO.dll Error Pin
SelvaSR18-Dec-08 1:08
SelvaSR18-Dec-08 1:08 
AnswerRe: SQLDMO.dll Error Pin
Rob Graham18-Dec-08 4:17
Rob Graham18-Dec-08 4:17 
GeneralRe: SQLDMO.dll Error Pin
SelvaSR18-Dec-08 22:43
SelvaSR18-Dec-08 22:43 
GeneralRe: SQLDMO.dll Error Pin
Rob Graham20-Dec-08 3:35
Rob Graham20-Dec-08 3:35 
QuestionHow to creat a consolidat setup for an application built in vb 2005 Pin
kennylal18-Dec-08 0:37
kennylal18-Dec-08 0:37 
AnswerRe: How to creat a consolidat setup for an application built in vb 2005 Pin
Rob Graham20-Dec-08 7:36
Rob Graham20-Dec-08 7:36 
QuestionHotel reservation Pin
WebMaster17-Dec-08 23:11
WebMaster17-Dec-08 23:11 
AnswerRe: Hotel reservation Pin
Blue_Boy17-Dec-08 23:40
Blue_Boy17-Dec-08 23:40 
AnswerRe: Hotel reservation Pin
Ashfield18-Dec-08 1:04
Ashfield18-Dec-08 1:04 
QuestionTable values import to excel Sheet Pin
thangarajappa17-Dec-08 23:01
thangarajappa17-Dec-08 23:01 
AnswerRe: Table values import to excel Sheet Pin
Wendelius18-Dec-08 10:02
mentorWendelius18-Dec-08 10:02 
Questionsql server 2000 Pin
kulandaivel_mca200717-Dec-08 22:56
kulandaivel_mca200717-Dec-08 22:56 
AnswerRe: sql server 2000 Pin
Blue_Boy17-Dec-08 23:27
Blue_Boy17-Dec-08 23:27 
Questioneditor Stored procedure in MYSQL Pin
ptr_Electron17-Dec-08 21:44
ptr_Electron17-Dec-08 21:44 
AnswerRe: editor Stored procedure in MYSQL Pin
Wendelius18-Dec-08 9:03
mentorWendelius18-Dec-08 9:03 
GeneralExecution Plan Pin
Mycroft Holmes17-Dec-08 16:47
professionalMycroft Holmes17-Dec-08 16:47 
GeneralRe: Execution Plan Pin
Wendelius17-Dec-08 18:15
mentorWendelius17-Dec-08 18:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.