Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
QuestionResume upload Pin
a.hamidy12-Apr-09 18:26
a.hamidy12-Apr-09 18:26 
QuestionDesign and Display Issue Pin
sajid.salim.khan12-Apr-09 18:22
sajid.salim.khan12-Apr-09 18:22 
AnswerRe: Design and Display Issue Pin
Abhijit Jana12-Apr-09 20:01
professionalAbhijit Jana12-Apr-09 20:01 
QuestionRe: Design and Display Issue Pin
King Julien12-Apr-09 20:11
King Julien12-Apr-09 20:11 
QuestionLimit of thread Pin
yesu prakash12-Apr-09 18:06
yesu prakash12-Apr-09 18:06 
AnswerRe: Limit of thread Pin
Anubhava Dimri12-Apr-09 18:39
Anubhava Dimri12-Apr-09 18:39 
AnswerRe: Limit of thread Pin
Dave Kreskowiak12-Apr-09 18:51
mveDave Kreskowiak12-Apr-09 18:51 
QuestionSimple Transaction Questions [modified] Pin
devvvy12-Apr-09 15:49
devvvy12-Apr-09 15:49 
hello

QUESTION 1: is it true that .NET framework will automatically enlist help from Distributed Transaction Coordinator?

<br />
try {<br />
IDbConnection oConn1 = new SqlConnection("Data Source=Server1;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;");<br />
<br />
<br />
IDbConnection oConn2 = new SqlConnection("Data Source=Server2;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;");<br />
<br />
IDbTransaction oTx1 = oConn1.BeginTransaction();<br />
IDbTransaction oTx2 = oConn2.BeginTransaction();<br />
<br />
<br />
... oConn1 db access ...<br />
... oConn2 db access ...<br />
<br />
oTx2.Commit();<br />
oTx1.Commit();<br />
} catch(Exception ex)<br />
{<br />
oTx2.Rollback();<br />
oTx1.Rollback();<br />
} finally {<br />
...<br />
}<br />


QUESTION 2: There's no "TransactionScopeOption" for IDbTransaction.BeginTransaction?! It's always TransactionScopeOption.New?

QUESTION 3. How can you join transaction without use of TransactionScope? Is there such thing as joining multiple transaction..?
<br />
IDbTransaction oTx = oConn1.BeginTransaction();<br />
oConn2.EnlistTransaction(oTx);<br />
<br />
oTx.Commit(); // commit commands associated with both connections<br />


Thanks

dev

modified on Sunday, April 12, 2009 10:03 PM

QuestionHelp with Textbox Pin
BabyCSharp12-Apr-09 15:33
BabyCSharp12-Apr-09 15:33 
AnswerRe: Help with Textbox Pin
Wes Aday12-Apr-09 16:01
professionalWes Aday12-Apr-09 16:01 
GeneralRe: Help with Textbox Pin
BabyCSharp13-Apr-09 14:37
BabyCSharp13-Apr-09 14:37 
AnswerRe: Help with Textbox Pin
nationwoo12-Apr-09 16:55
nationwoo12-Apr-09 16:55 
AnswerRe: Help with Textbox Pin
12Code12-Apr-09 16:59
12Code12-Apr-09 16:59 
AnswerRe: Help with Textbox Pin
Luc 64801112-Apr-09 17:27
Luc 64801112-Apr-09 17:27 
AnswerRe: Help with Textbox Pin
Roberto Ho13-Apr-09 2:03
Roberto Ho13-Apr-09 2:03 
QuestionDetermine whether connected to the internet. Pin
kippow12-Apr-09 13:58
kippow12-Apr-09 13:58 
AnswerRe: Determine whether connected to the internet. Pin
Luc 64801112-Apr-09 14:47
Luc 64801112-Apr-09 14:47 
QuestionQuestion about DirectX.Sound. Pin
t.s.al-zahrani12-Apr-09 12:52
t.s.al-zahrani12-Apr-09 12:52 
AnswerRe: Question about DirectX.Sound. Pin
Mycroft Holmes12-Apr-09 14:47
professionalMycroft Holmes12-Apr-09 14:47 
QuestionCan operators be overloaded for built-in value types Pin
Winkles12-Apr-09 12:19
Winkles12-Apr-09 12:19 
AnswerRe: Can operators be overloaded for built-in value types Pin
Colin Angus Mackay12-Apr-09 12:43
Colin Angus Mackay12-Apr-09 12:43 
AnswerRe: Can operators be overloaded for built-in value types Pin
DaveyM6912-Apr-09 20:53
professionalDaveyM6912-Apr-09 20:53 
QuestionMaximize Problem in MDI Form. Pin
hdv21212-Apr-09 10:49
hdv21212-Apr-09 10:49 
AnswerRe: Maximize Problem in MDI Form. Pin
sajid.salim.khan12-Apr-09 18:32
sajid.salim.khan12-Apr-09 18:32 
GeneralRe: Maximize Problem in MDI Form. Pin
hdv21213-Apr-09 9:24
hdv21213-Apr-09 9:24 

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.