Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > ADO Errors


Reply
 
Thread Tools Display Modes
  #1  
Old 10-24-2001, 12:17 PM
PeteMac
Guest
 
Posts: n/a
Question ADO Errors


I have written an application that makes significant use of ADO connections to an Access database. This is the first application I have written using VB (v6 SP4). Everything works terrifically when single user is logged in, even over the network connections. My problem is when more than one user attempts to navigate around the same ADO intensive areas of the application. I get "Database placed in a state by unknown user that prohibits open or access to database" (I can't remember the exact wording). It can't be a Locking problem as all ADO connections are specified as Readonly, ClientSide and Static.
Is this a problem with Access running out of resources ? Has anyone got any ideas ?
All users login to the database with the same 'Admin' name with no password. I am using UDL files to specify the connectinon parameters.
Reply With Quote
  #2  
Old 10-24-2001, 12:36 PM
quwiltw quwiltw is offline
Junior Contributor
 
Join Date: Sep 2001
Location: Washington, D.C.
Posts: 302
Default Re: ADO Errors

it'd be easier to tell if you'd post a snippet of relevant code (the code that attempts the connection) When sql server runs out of resources I usually get an error message saying as much, I assume the same with Access? therefore, I wouldn't be so quick to say it "can't" be a locking problem.
Reply With Quote
  #3  
Old 10-26-2001, 10:45 PM
dcl3500's Avatar
dcl3500 dcl3500 is offline
Mostly Harmless?

Retired Moderator
* Expert *
 
Join Date: Jun 2001
Location: Western Illinois, USA
Posts: 2,398
Default Re: ADO Errors

I get that error to on occasion. I finally tracked it down to the fact that a user was accessing the same table as another user at the same time. The best solution I came up with was to trap the error then retry the operation again in a couple of seconds. As an aside though, make sure to close your connections, recordsets and what have you as soon after completing an operation. Otherwise the database could remain in this state for quite awhile.
__________________
Don

"So long and thanks for all the fish.'" - Douglas Adams.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->