Using Transaction scope
- From: "AnikSol" <anisol@xxxxxxxxxxxxxxxx>
- Date: Tue, 31 Oct 2006 22:54:02 +0800
Hi,
VB 2005 Prof, SQL server 2005, Windows application
- I am using transaction scope and within this scope I am passing multiple
SQL statements to the command.text
On executing, all is well.
But noticed that in case there is SQL server time out, then the transaction
doesn't fail.
Say, if the system had processed 2 sql statements from the bunch of multiple
statements in the command, then the database gets updated with these 2 sql
statements.
Ofcourse, if the transaction scope does fail , then there is no update
So why should the transaction be not enforced in case of an SQL server time
out? If this is a normal behaviour, then how to avoid this pitfall?
thanks.
.
- Follow-Ups:
- RE: Using Transaction scope
- From: Charles Wang[MSFT]
- RE: Using Transaction scope
- Prev by Date: Re: VB 2005 Insert records into multiple tables
- Next by Date: Re: Begining Queries
- Previous by thread: Re: VB 2005 Insert records into multiple tables
- Next by thread: RE: Using Transaction scope
- Index(es):
Relevant Pages
|
Loading