Transactions in VB6 using MSDE 2000
- From: "steve" <sfrancis@xxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 20:23:14 +1000
Hi All
I am upgrading a VB6 program from Access 2K to MSDE 2000 RelA
When the program used Access I had set up several ADO transactions
Since upgrading to MSDE I am having strange things happen
e.g
************************
cn.BeginTrans
intrans = True
InvoicesSaved = False
cancel_clicked = False
'get latest invoice number
sql = "select * from [prefers]"
rs.Open sql, cn, adOpenKeyset, adLockReadOnly
If rs.RecordCount <= 0 Or IsNull(rs![last_inv].Value) Then
invnum = 1
Else
invnum = rs![last_inv].Value
End If
rs.Close
'rs used to get 1 of each custcode in daily file
sql = "select distinct [cust_code] from [Daily]"
rs.Open sql, cn, adOpenKeyset, adLockOptimistic
'minimise records returned as only for inserting new data
sql = "Select * from [idetail] where [prod_code] = ''" I get
error here that another connection can't be created as
transaction in progress
rsinvdetail.Open sql, cn, adOpenKeyset, adLockOptimistic
*********************************************
After doing a serious of Database chores under a transaction and after
committing the changes, 2 datacombos begin to behave strangely. The list of
items on 1 disappears and the other one locks up when trying to select an
item
Commenting out the cn.begintrans solves these problems
What is different in MSDE regarding transactions from ADO
Regards
Steve
.
- Prev by Date: updating data
- Next by Date: Re: ADO.NET performance with large tables
- Previous by thread: updating data
- Next by thread: ADO Broken Connection
- Index(es):
Relevant Pages
|
|