If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > If database is open, can't access tables asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-03, 05:56
loolie loolie is offline
Registered User
 
Join Date: Jan 2003
Posts: 3
If database is open, can't access tables asp

I have an asp page which verifies permissions in an access database table of username/password (mdw file for permissions on the db) and then displays another table's info. This works fine IF the db is not open when running the asp page. I have found out however, that if another user has the db open, it won't work. It's like only one person can access at a time. something to do with the idb file? I don't know what to do here. Does this make sense? Can someone help?

I need to explain a bit more....we have multiple users who use the access database on a share (e:/). The asp pages/web pages are on a different share (f:/). Several users can run the asp pages and query the database ONLY IF the database is Not open on e:/. If it is open (mdw/idb files showing), the asp can't query the tables.

Last edited by loolie; 01-22-03 at 06:22.
Reply With Quote
  #2 (permalink)  
Old 01-22-03, 15:04
pjames pjames is offline
Registered User
 
Join Date: Jan 2003
Posts: 23
Re: If database is open, can't access tables asp

That is correct the "lock" file will not allow updates or to run querys from a open file. This is microsofts polite way of saying "If you want to have more than one user buy SQL server"
Reply With Quote
  #3 (permalink)  
Old 01-23-03, 04:38
loolie loolie is offline
Registered User
 
Join Date: Jan 2003
Posts: 3
Oh No. Our main reason for this was to have users without ms access be able to contribute to the tables. Is there ANY way around this at all? The only thing I can think of is to make a duplicate table in another db...but then it's not 'live' and we run into issues there. I guess I thought since you can have multiple users in access that it would work the same way with the asp. Any ideas at all on another way around?
Reply With Quote
  #4 (permalink)  
Old 01-24-03, 09:05
pjames pjames is offline
Registered User
 
Join Date: Jan 2003
Posts: 23
What purpose does having the users directly open the access database. Are they creating fields/tables or just inputing data?
Reply With Quote
  #5 (permalink)  
Old 01-24-03, 09:09
loolie loolie is offline
Registered User
 
Join Date: Jan 2003
Posts: 3
Both. We have an entire employee database which has a lot of users. Also we create new forms and fields etc. for filtering when need arises. We don't want to build asp for the entire database. We still want those with ms access software to do what they are doing now. Just want web access for certain pieces of it for outside the depts. Does this make sense?
Reply With Quote
  #6 (permalink)  
Old 01-24-03, 09:22
pjames pjames is offline
Registered User
 
Join Date: Jan 2003
Posts: 23
Unhappy

I see... I don't see a solution in that case then. There just is no possible way to utilize the same DB when open from MS Access and access it thru the jet or oledb provider. Even if you were to "link" the database you would run into the same issue.

Sorry i could not be of more assistance.
Reply With Quote
  #7 (permalink)  
Old 01-24-03, 09:35
luisantonio luisantonio is offline
Registered User
 
Join Date: Sep 2002
Location: San Juan, Puerto Rico
Posts: 29
Thanks

Thanks for your comments
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On