Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Access Database Failing
PostPosted: May 12th, 2010, 11:37 am 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi

Have developed a program that does a number of access database queries, occasionally in rapid succession. Occasionally these queries appear to be failing, and this might be causing the program to freeze. Just wondered if there are any issues to be aware of regarding using an access database, and doing frequent queries on different tables within access. For example, if I ever have failed to close a query, will that cause future queries to fail?

The problem we are experiencing (which may or may not be related to an access database) is that a number of (more modern) PCs seem to be hanging in an Opus publication. Clients have reported that older PCs don't appear to be affected. Haven't managed to establish any specific PC specification that causes the problem, but it occurs in XP so it's not related solely to Vista or Windows 7.

Would be delighted to hear anyone's feedback.

Thanks

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject: Re: Access Database Failing
PostPosted: May 12th, 2010, 2:53 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
You say some of the queries are done in rapid sucession? have you tried adding some delay to ensure the first query is complete before another starts? . You could error trap for a valid return, so the next query can only be started when the first is complete.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject: Re: Access Database Failing
PostPosted: May 12th, 2010, 7:44 pm 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
There are many possible causes of the program freezing, and I am trying to narrow down the number of possibilities. It would take a number of days simply to add a time delay or check to the system. My question is whether there are any issues to be aware of regarding using an access database, and doing frequent queries on different tables within access. For example, if I ever have failed to close a query, will that cause future queries to fail?

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject: Re: Access Database Failing
PostPosted: June 30th, 2010, 10:33 am 
Offline

Joined: December 21st, 2009, 5:26 pm
Posts: 27
Opus: Professional 7.03
OS: XP SP3
I am having this issue as well, I need a way to check my Access Queries are definitely closing before another one opens. Any advice on the best way to do this would be greatly appreciated!


Top
 Profile  
 
 Post subject: Re: Access Database Failing
PostPosted: June 30th, 2010, 11:30 am 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi - Sandyn mentioned that I could error trap for a valid return, so the next query can only be started when the first is complete. How can I do this? I've no idea how to 'error trap' and don't know any scripting?

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject: Re: Access Database Failing
PostPosted: June 30th, 2010, 2:13 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Trapping errors for DBs using script:

Code:
k = db.ExecuteSQL("INSERT INTO people (fname) VALUES ('charlie')")

Debug.trace(k)

j = db.ExecuteSQL("SELECT * FROM person;")

Debug.trace(j)


In the first instance, the value of k will be true if the value was inserted into the DB and false if it failed. In the second instance, the value of j will be an object holding the dataset if successful and false if failed.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Access Database Failing
PostPosted: June 30th, 2010, 3:23 pm 
Offline

Joined: December 21st, 2009, 5:26 pm
Posts: 27
Opus: Professional 7.03
OS: XP SP3
Thanks Mack, would we be able to insert this script onto a master page (which is used for the pages which perform queries) or would it have to be on each page where the queries are run? I'm a complete script newbie so forgive me if this is a stupid question.


Top
 Profile  
 
 Post subject: Re: Access Database Failing
PostPosted: June 30th, 2010, 5:29 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Sorry Jay, that's like throwing darts with the lights off!

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 51 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