473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Transactions and closing recordsets

I have a series of recordset operations, Open/Edit/Close, Open/Edit/Close. I
want to wrap in a transaction. What happens to the edits when the record set
is close before the Commit or Rollback? Do I need to keep all the recordsets
open?
Apr 20 '07 #1
2 2969
No. Close the recordset, and set it to Nothing as soon as you are finished.
These edits exist in the workspace that you will utlimately commit or
rollback.

This article illustrates a series of steps that are ultimately
committed/rolled back, and discusses the traps:
Archive: Move Records to Another Table
at:
http://allenbrowne.com/ser-37.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"paii, Ron" <pa**@packairinc.comwrote in message
news:_d******************************@athenet.net. ..
>I have a series of recordset operations, Open/Edit/Close, Open/Edit/Close.
I
want to wrap in a transaction. What happens to the edits when the record
set
is close before the Commit or Rollback? Do I need to keep all the
recordsets
open?
Apr 20 '07 #2
Thank you for the quick response.

That's good to know, I normally run a series of actions query, but this
function's logic was easer with recordsets.

"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:46***********************@per-qv1-newsreader-01.iinet.net.au...
No. Close the recordset, and set it to Nothing as soon as you are
finished.
These edits exist in the workspace that you will utlimately commit or
rollback.

This article illustrates a series of steps that are ultimately
committed/rolled back, and discusses the traps:
Archive: Move Records to Another Table
at:
http://allenbrowne.com/ser-37.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"paii, Ron" <pa**@packairinc.comwrote in message
news:_d******************************@athenet.net. ..
I have a series of recordset operations, Open/Edit/Close,
Open/Edit/Close.
I
want to wrap in a transaction. What happens to the edits when the record
set
is close before the Commit or Rollback? Do I need to keep all the
recordsets
open?

Apr 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Shaun Stuart | last post by:
I've got a webpage that calls some stored procedures with input variables. The procedures return recordsets and also some output variables. We're trying to get the values of the output variables....
4
by: James | last post by:
Quick question about closing recordsets and connection objects. We're in the process of rewriting a TON of bad code. None of it is even remotely tabbed properly, it's impossible to read half the...
5
by: amazo | last post by:
Dear all, I would like to know if it is possible to close used recordsets in the middle of transactions (and re-use the variable it is is necessary), i.e. --- begin code Dim ws As...
1
by: Frank Rizzo | last post by:
When I commit a transaction, what should be the order of closing resources? Transaction first, and then the Connection? Or vice versa? Or doesn't matter? Currently I have this. Is this correct?...
13
by: Simon Harvey | last post by:
Hi All, I have a colleague that I wprk with that develops using ASP. I develop using ASP.net. He seems to make sites much faster than me and I am wondering if its because of the two different...
1
by: RJN | last post by:
Hi I have a transaction requirement that spawns across components. Typical example is saving address, order etc. Each of these components will do their part of transaction. If any of the...
16
by: Randy Harris | last post by:
I was inspired by the recent discussion of returning multiple recordsets to ADO from a stored procedure. (Amazed is probably more accurate). I asked about how to accomplish same with Oracle and...
0
by: alt_iuliu | last post by:
Hello, I am using VB6 application (very old) with an Access 97 database. The database is quite large (close to Access limit of 1G) and is used over the network from multiple location. >From...
8
by: Wayne | last post by:
I have had a problem for some time with several databases and figure there must be a common underlying cause. Sometimes when I open a database, nothing appears to happen, but an .ldb file gets...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.