473,394 Members | 2,160 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,394 software developers and data experts.

VB.NET, Access and Transactions

Hi,

We've got a multi-user system written in VB.net. It has an Access back
end. We've written it using Business objects, and it writes changes to
the database using saved queries eg
PARAMETERS P1 Integer, P2 Integer, pId Integer;
UPDATE Table1 Set Value1 = P1, Value 2 = P2 WHERE ID = pID;

All the writes are wrapped up in a transaction but we can have many
write operations within the same transaction (sometimes a couple of
hundred).

We're doing data access using ADO.Net.

Our problem is that we seem to be getting the situation where users are
encountering locked records, locked tables etc on many more occasions
than we would hope for considering the limited number of users on the
system (<10). This seems to be happening because of the transactions
locking portions of the database. This in itself is not unexpected,
it's just the number of times that it happens is surprising.

I've been asked to ask if anyone else is successfully using VB.NET with
an access back end like this, and if there are any suggestions for how
to fix this, or if access is just not up to the job, and we should be
using SQL Server.

I am aware of the obvious solutions: minimise the duration of the
transaction by ensuring that records are written as quickly as possible,
and that nothing keeps the transaction open for any longer than it needs
to be kept open.

Any comments would be appreciated.

Regards
Stephen Roberts
Mar 27 '06 #1
1 1420

"Stephen Roberts" <me@privacy.net> wrote in message
news:44**************@privacy.net...
I am aware of the obvious solutions: minimise the duration of the
transaction by ensuring that records are written as quickly as possible,
and that nothing keeps the transaction open for any longer than it needs
to be kept open.


You are aware that there are (should be?) different levels of locking? Is it
possible to do read only access where updates aren't needed?

VB .Net is supposed to copy records to itself, let you do updates, and then
update in one hit - haven't played with it enough yet though.

Mar 27 '06 #2

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

Similar topics

8
by: David Bray | last post by:
I have an Access database on an ISP's web-space which is accessed through ASP - all standard stuff. Can anyone tell me whether ASP's object.context methods for transactions will work with...
6
by: user451 | last post by:
As the most Access-savvy person in my office, I have been handed the task of proposing a nationwide expansion of a project that I have developed in Access. A brief overview: Right now, about 25...
1
by: ljubo lecic via AccessMonster.com | last post by:
I am developing a complex ACCESS aplication. My question is: If I have A few update queries that are called within after-update event in the form( queries updating another tables) I am wandering...
3
by: mazubair | last post by:
I am going to develop a Banking Solution for very small branches of a Bank. The branches are standalone and no remote transactions will be made i.e. only the individual branch will be under...
2
by: Adnan | last post by:
Hey Ppl, I'm developing an Online Auction Site using ASP.net and am experiencing a problem with Transactions in ADO.Net. When beginTrasaction() function is invoked from a specific connection,...
7
by: Karen Hill | last post by:
Hi. I need to use transactions to make sure data is consistent. I have a combo box that when changed to a new value updates a table. I then have a DoCmd.RunSQL statement following that in the...
2
by: Sridhar | last post by:
Hi, I am trying to implement sql transactions. But I am not knowing how to do that. I created a data access layer which contains methods to select/insert/update tables in a database. I have also...
9
by: rysch | last post by:
Hi, I am building a warehouse database for a small non-profit organisation that works in Africa. Currently, I have created a data entry form and table. The table is called: Inventory Transactions....
3
by: IntelliOfficer | last post by:
The data I am using was imported from Excel. The tables were then merged into one large table (3 million + records) and so cannot be re-exported into excel for modification. I am trying to map the...
3
by: Michael Schöller | last post by:
Hello, First of all english is not my natural language so please fogive me some bad mistakes in gramatic and use of some vocables :). I have a great problem here. Well I will not use it...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.