|
-
Aug 3rd, 2003, 01:08 AM
#1
Thread Starter
Addicted Member
Transactions for MSAccess with VB.NET
Hi all big players,
Here is a problem I would like to ask:
Can I use Transactions for MSAccess database in VB.NET
Like DBEgine.BeginTrans, Rollbacks and DBEngine.CommitTrans in VB6 for MSAccess with DAO [not ADO]
If not then how can we control Batch updations.
Thanks
Parminder
-
Aug 3rd, 2003, 01:12 PM
#2
Hyperactive Member
not tried it but I would say a defintie yes, remember ADO.Net actually doesn't care which database you use. I do have one concern though, we used oledb in our application development, still linked to sql server (in our native application) but I've heard rumours that that support is being withdrawn, pisses me off because we could have gone for native sql and was only adopted oledb as a customer convenience if they already had a different type of database installed, e.g. FoxPro, Oracle, etc.
-
Aug 4th, 2003, 01:39 PM
#3
Thread Starter
Addicted Member
Thanks Richard
Is you have code example ?
-
Aug 4th, 2003, 01:51 PM
#4
No.
Access does not support Transactions.
-
Aug 5th, 2003, 05:54 AM
#5
Member
What ?
What do you mean ?
- That an Access database does not support transactions (wrong) or that programming Access databases with ADO .Net is incompatible with transactions (wrong too), example:
Dim CN as OledbConnection
Dim Trans as OledbTransaction
'Open your connection
Trans = CN.BeginTrans
Try
'Code to update database
Catch
Trans.RollBack()
'Close connection
Throw
End Try
Trans.Commit()
'Close connection
-
Aug 13th, 2003, 05:43 AM
#6
Thread Starter
Addicted Member
Thanks Desbaratizador
I am using transactions in MS Access. Definately it is working fine.
Thanks for your code and help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|