Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:46 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Database Query
PostPosted: July 28th, 2006, 2:47 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I have two Opus applications running at the same time One initiates the other. Both require to have access to a database. Which is the best approach??
To access the same database, same table?
To access same database different table
Or to access different Databases using different DSNs.
I have tried accessing the same database, same table. One application in a loop doing a database query every second, the other at random. I assume that sooner or later they will both try to access the database at exactly the same moment and cause an error??

Another question:-When doing a database query using access what is the best way of error trapping the event?? at the moment Access prevents duplicate Primary key entries, which is good, but it throws an error which kills the Opus program. The way I get round it at the moment is to check before doing any updates to see if the record already exists. Just wondered if there was a smarter way???

Thanks

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 64 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group