Nested transaction in 2002

N

niraj shah

Hi;

I am working with OLEDB.NET provider and MS Access 2000.

I am getting exception when i=4...

try
{
System.Data.OleDb.OleDbConnection conn =
ps.GetConnection();
conn.Open();
System.Data.OleDb.OleDbTransaction topT =
conn.BeginTransaction();
System.Data.OleDb.OleDbTransaction tempT = topT;
for(int i=0; i < 10; i++ )
{
tempT = tempT.Begin();
}
}
catch( Exception e )
{
System.Diagnostics.Trace.WriteLine( e.Message );
}

Does Access 2002 has same limit for nested transaction?

Thanks
Niraj Shah
 
T

TC

Surely the limit is documented in online help? (I don't have Access here to
check)

HTH,
TC
 
A

Alick [MSFT]

Hi,

If you use ADO.NET, you would use Microsoft OLE DB Provider for SQL Server
(OLEDBSQL); if so, it is by design, OLE DB Provider for SQL Server does not
allow nested transactions.

PRB: "Cannot Start More Transactions on This Session" Error Message When
http://support.microsoft.com/?id=316872

This question seems more like ADO.Net related. You can also try
Microsoft.public.dotnet.* newsgroup.

Please feel free to reply to the threads if you have any concerns or
questions.



Sincerely,

Alick Ye, MCSD
Product Support Services
Microsoft Corporation
Get Secure! - <www.microsoft.com/security>

This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| Content-Class: urn:content-classes:message
| From: "niraj shah" <[email protected]>
| X-Tomcat-NG: microsoft.public.access.tablesdbdesign
|
| Hi;
|
| I am working with OLEDB.NET provider and MS Access 2000.
|
| I am getting exception when i=4...
|
| try
| {
| System.Data.OleDb.OleDbConnection conn =
| ps.GetConnection();
| conn.Open();
| System.Data.OleDb.OleDbTransaction topT =
| conn.BeginTransaction();
| System.Data.OleDb.OleDbTransaction tempT = topT;
| for(int i=0; i < 10; i++ )
| {
| tempT = tempT.Begin();
| }
| }
| catch( Exception e )
| {
| System.Diagnostics.Trace.WriteLine( e.Message );
| }
|
| Does Access 2002 has same limit for nested transaction?
|
| Thanks
| Niraj Shah
|
 
N

niraj shah

Hi Alick,

Thanks for your reply. I am using ADO.NET with
Provider=Microsoft.Jet.OLEDB.4.0 & Access 2000

I am not sure if there is any limit for nested transaction
in Access 2002. If so, is there any other way around?
Please help.

Thanks
Niraj
 
N

niraj shah

Hi HTH,

Thanks for your reply. Following is reply from newsgroup
from my previous post...
Access 2000 only allows nested transactions five level
deep
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnacc2k/html/acchap2.asp
Four plus the one you start before the loop=five, what
you are seeing is the expected behavior.

But for Access 2002, I am not sure.
Let me know, if you have any suggestion.

Thanks
Niraj
 
T

TC

Come on niraj - show some initiative!

Write a simple loop that creates nested transactions until it fails
with a "too many nested transactions!" error.

That will tell you the limit, no?

As for whether you can increae the limit, the answer to such questions
is invariably "no" - otherwise, it would not be the limit, yes?

HTH,
TC
 
A

Alick [MSFT]

Hi,

Transactions may only be nested 5 levels deep; from the Jet programmer's
handbook:

"In Microsoft Jet workspaces, you can have up to 5 levels of transactions
active at any one time by nesting combinations of the BeginTrans and
CommitTrans methods or the Rollback method. If you nest transactions, you
must make sure you commit of rollback the current transaction before trying
to roll back or commit a transaction at a higher level of nesting. If you
want to have additional levels of nesting or want to have transactions with
overlapping, non-nested scopes, you can open additional workspace objects
and manage other transactions within those objects."


Please feel free to reply to the threads if you have any questions or
concerns.



Sincerely,

Alick Ye, MCSD
Product Support Services
Microsoft Corporation
Get Secure! - <www.microsoft.com/security>

This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| Content-Class: urn:content-classes:message
| From: "niraj shah" <[email protected]>
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.access.tablesdbdesign
|
| Hi Alick,
|
| Thanks for your reply. I am using ADO.NET with
| Provider=Microsoft.Jet.OLEDB.4.0 & Access 2000
|
| I am not sure if there is any limit for nested transaction
| in Access 2002. If so, is there any other way around?
| Please help.
|
| Thanks
| Niraj
|
| >-----Original Message-----
| >Hi,
| >
| >If you use ADO.NET, you would use Microsoft OLE DB
| Provider for SQL Server
| >(OLEDBSQL); if so, it is by design, OLE DB Provider for
| SQL Server does not
| >allow nested transactions.
| >
| >PRB: "Cannot Start More Transactions on This Session"
| Error Message When
| >http://support.microsoft.com/?id=316872
| >
| >This question seems more like ADO.Net related. You can
| also try
| >Microsoft.public.dotnet.* newsgroup.
| >
| >Please feel free to reply to the threads if you have any
| concerns or
| >questions.
| >
| >
| >
| >Sincerely,
| >
| >Alick Ye, MCSD
| >Product Support Services
| >Microsoft Corporation
| >Get Secure! - <www.microsoft.com/security>
| >
| >This posting is provided "AS IS" with no warranties, and
| confers no rights.
| >
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "niraj shah" <[email protected]>
| >| X-Tomcat-NG: microsoft.public.access.tablesdbdesign
| >|
| >| Hi;
| >|
| >| I am working with OLEDB.NET provider and MS Access 2000.
| >|
| >| I am getting exception when i=4...
| >|
| >| try
| >| {
| >| System.Data.OleDb.OleDbConnection conn =
| >| ps.GetConnection();
| >| conn.Open();
| >| System.Data.OleDb.OleDbTransaction topT =
| >| conn.BeginTransaction();
| >| System.Data.OleDb.OleDbTransaction tempT = topT;
| >| for(int i=0; i < 10; i++ )
| >| {
| >| tempT = tempT.Begin();
| >| }
| >| }
| >| catch( Exception e )
| >| {
| >| System.Diagnostics.Trace.WriteLine( e.Message );
| >| }
| >|
| >| Does Access 2002 has same limit for nested transaction?
| >|
| >| Thanks
| >| Niraj Shah
| >|
| >
| >.
| >
|
 
N

Niraj Shah

Hi TC;

Thanks for your input.
I did same thing for 2000 but since don't
have Access 2002 installed, I did not test that.
I was hoping some one might have seen this problem.
Thanks for your reply.

Niraj
 
N

Niraj Shah

Thanks Alick.

-----Original Message-----
Hi,

Transactions may only be nested 5 levels deep; from the Jet programmer's
handbook:

"In Microsoft Jet workspaces, you can have up to 5 levels of transactions
active at any one time by nesting combinations of the BeginTrans and
CommitTrans methods or the Rollback method. If you nest transactions, you
must make sure you commit of rollback the current transaction before trying
to roll back or commit a transaction at a higher level of nesting. If you
want to have additional levels of nesting or want to have transactions with
overlapping, non-nested scopes, you can open additional workspace objects
and manage other transactions within those objects."


Please feel free to reply to the threads if you have any questions or
concerns.



Sincerely,

Alick Ye, MCSD
Product Support Services
Microsoft Corporation
Get Secure! - <www.microsoft.com/security>

This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| Content-Class: urn:content-classes:message
| From: "niraj shah" <[email protected]>
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.access.tablesdbdesign
|
| Hi Alick,
|
| Thanks for your reply. I am using ADO.NET with
| Provider=Microsoft.Jet.OLEDB.4.0 & Access 2000
|
| I am not sure if there is any limit for nested transaction
| in Access 2002. If so, is there any other way around?
| Please help.
|
| Thanks
| Niraj
|
| >-----Original Message-----
| >Hi,
| >
| >If you use ADO.NET, you would use Microsoft OLE DB
| Provider for SQL Server
| >(OLEDBSQL); if so, it is by design, OLE DB Provider for
| SQL Server does not
| >allow nested transactions.
| >
| >PRB: "Cannot Start More Transactions on This Session"
| Error Message When
| >http://support.microsoft.com/?id=316872
| >
| >This question seems more like ADO.Net related. You can
| also try
| >Microsoft.public.dotnet.* newsgroup.
| >
| >Please feel free to reply to the threads if you have any
| concerns or
| >questions.
| >
| >
| >
| >Sincerely,
| >
| >Alick Ye, MCSD
| >Product Support Services
| >Microsoft Corporation
| >Get Secure! - <www.microsoft.com/security>
| >
| >This posting is provided "AS IS" with no warranties, and
| confers no rights.
| >
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "niraj shah" <[email protected]>
| >| X-Tomcat-NG: microsoft.public.access.tablesdbdesign
| >|
| >| Hi;
| >|
| >| I am working with OLEDB.NET provider and MS Access 2000.
| >|
| >| I am getting exception when i=4...
| >|
| >| try
| >| {
| >| System.Data.OleDb.OleDbConnection conn =
| >| ps.GetConnection();
| >| conn.Open();
| >| System.Data.OleDb.OleDbTransaction topT =
| >| conn.BeginTransaction();
| >| System.Data.OleDb.OleDbTransaction tempT = topT;
| >| for(int i=0; i < 10; i++ )
| >| {
| >| tempT = tempT.Begin();
| >| }
| >| }
| >| catch( Exception e )
| >| {
| >| System.Diagnostics.Trace.WriteLine( e.Message );
| >| }
| >|
| >| Does Access 2002 has same limit for nested transaction?
| >|
| >| Thanks
| >| Niraj Shah
| >|
| >
| >.
| >
|

.
 
T

TC

Ok, understood. Sorry I can't help with the info. I do not have *any*
version of Access on the PC from which I post.

Cheers,
TC
 
T

TC

HTH = "Hope This Helps"

:)

TC


niraj shah said:
Hi HTH,

Thanks for your reply. Following is reply from newsgroup
from my previous post...



But for Access 2002, I am not sure.
Let me know, if you have any suggestion.

Thanks
Niraj
 
N

niraj shah

Hi TC;

At first, I did not understand 'HTC' but thanks for your
clarification. I really appreciate that you took the time
to reply my question.
Hope you do same in future.

Cheers
Niraj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top