Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

dao connection two multiple copies of the same database

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  Using DAO in .Net to access a MSAccess 97 Databas..  
Author Message
Julie Barnet

External


Since: Nov 21, 2003
Posts: 4



(Msg. 1) Posted: Tue Nov 11, 2003 3:27 pm
Post subject: dao connection two multiple copies of the same database
Archived from groups: microsoft>public>vb>database>dao (more info?)

I am currently developing software that will be running in two
instances (both instances will access only one database, and therefore
two connections will need to be made to one database - one for each
instance).

I'm currently using dao, but I seem to only be able to connect once.
Once firing up my second instance I get the runtime error 3045. Could
not use database. File is in use.

Is there a way I can accomplish this. It does not need to be with
dao. I just need a way to connect to one database several times
without errors producing.

Thanks in advance
Julie Barnet

 >> Stay informed about: dao connection two multiple copies of the same database 
Back to top
Login to vote
Unicorn

External


Since: Nov 14, 2003
Posts: 98



(Msg. 2) Posted: Wed Nov 12, 2003 4:20 pm
Post subject: Re: dao connection two multiple copies of the same database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Julie, it sounds like your are opening the database in Exclusive mode.
DAO is more than happy to have multiple connections from different
applications when in shared mode. DAO defaults to shared, but the second
parameter of the open database method allows you to set it.

Matt

"Julie Barnet" <barnetj.RemoveThis@pr.fraserpapers.com> wrote in message
news:438e1811.0311111227.22edbcc5@posting.google.com...
 > I am currently developing software that will be running in two
 > instances (both instances will access only one database, and therefore
 > two connections will need to be made to one database - one for each
 > instance).
 >
 > I'm currently using dao, but I seem to only be able to connect once.
 > Once firing up my second instance I get the runtime error 3045. Could
 > not use database. File is in use.
 >
 > Is there a way I can accomplish this. It does not need to be with
 > dao. I just need a way to connect to one database several times
 > without errors producing.
 >
 > Thanks in advance
 > Julie Barnet<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: dao connection two multiple copies of the same database 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Can't Make Data Connection - I'm getting a bit frustrated. 1) I want to evaluate Access 2007 Beta but can't install it and posting the question concerning this produces no rewsponse from these geniuses. 2) Going to abandon Access 2003 and use some other database or programming..

PostgresSQL connection error. - I use the connect string format from this site: http://www.connectionstrings.com/default.aspx?carrier=postgresql I am using VB6 with ADO. when I try to connect I got this error: FATAL: no pg_hba.conf entry for host "192.168.0.5", user &quo...

Problem with 'Dim' ..... As Database ??? - It's worked perfectly in the past. When I have a 'Dim MyDb As Database' statement in my program, it rejects it saying'User-defined type not Declared' (I have checked that the 'VB' library where this resides is available, and it works on new projects..

DAO 3.6 record locking - Hi, Is it possible to programmatically lock a single record in a VB application using DAO 3.6? I would like to lock users' records when they log on to the app. Later I can check if a user's record is locked to see if they are logged in or not. (I....

Fixes for VB4 or DAO 3.0 - I've got VB4 (32-bit) and it seems to use DAO 3.0. Is there a service pack for either of these that I can use? I'm having issues with DAO and > 2GB of RAM on the machine, and don't want to have to move to a newer version of VB if I can help it, just t...
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]