Re: connection pooling and commits
From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 02/03/04
- Next message: Steve: "Strange ADO.NET/Sybase/Sybase OLEDB problem"
- Previous message: Roshawn: "Re: MS Access Question"
- In reply to: Darin: "Re: connection pooling and commits"
- Next in thread: Angel Saenz-Badillos[MS]: "Re: connection pooling and commits"
- Reply: Angel Saenz-Badillos[MS]: "Re: connection pooling and commits"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 3 Feb 2004 11:35:02 -0800
Consider that each operation has an implied transaction that the server
manages. It's not necessary to manage the transactions yourself when a
single table operation is being done (that might be what you're doing).
Frankly, I don't recommend client-side transactions at all--I recommend that
folks use stored procedures that handle any transactions when changing more
than one base table.
-- ____________________________________ William (Bill) Vaughn Author, Mentor, Consultant Microsoft MVP www.betav.com Please reply only to the newsgroup so that others can benefit. This posting is provided "AS IS" with no warranties, and confers no rights. __________________________________ "Darin" <anonymous@discussions.microsoft.com> wrote in message news:98C2F7EE-A9BF-4F43-B54C-5C69D4D06B4E@microsoft.com... > Thanks for the reply Bill. > > When I'm inserting/updating multiple tables I do the trans.begintransaction and trans.commit and then close the connection. > > My question is when I'm inserting/updating a single table I call ExecuteNonQuery and call the Close() method of the connection object without any commits in my code. Now that the connection went back to the pool is a transaction is still pending since I didn't do any manual commits or does the connection know I'm done and commits since I called Close()?
- Next message: Steve: "Strange ADO.NET/Sybase/Sybase OLEDB problem"
- Previous message: Roshawn: "Re: MS Access Question"
- In reply to: Darin: "Re: connection pooling and commits"
- Next in thread: Angel Saenz-Badillos[MS]: "Re: connection pooling and commits"
- Reply: Angel Saenz-Badillos[MS]: "Re: connection pooling and commits"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|