We help IT Professionals succeed at work.

what is the proper way to close a non responding task?

239 Views
Last Modified: 2014-05-20
Hi experts,
I have an access FE application that is linked to 50% access tables and 50% sql tables.
I run sometimes in situations where I have a non responding running query.
very often its joining Access and SQL tables in one query.
What is the safest way of stopping it?
a-at the clients pc call task manager and end the access non responding app.
b-from SQL SSMS kill that transaction.
Comment
Watch Question

CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT

Author

Commented:
Hi,
How about the data stored in Access tables, does it makes a difference?
The last incident I had was when after a while, I pressed Contrl+Break, is that something that should be avoided, as it looks like Access does not transfer the command properly to SQL?
Jeffrey CoachmanMIS Liason
CERTIFIED EXPERT
Most Valuable Expert 2012

Commented:
Just note that, In newer versions of Access, "Not Responding" often means that the operation is just taking a long time to run.
How long are you waiting till you try to kill the app?

Can you post the SQL behind the query?
Sometimes the SQL is too complex, ...or contains elements that slow down the processing (Aggregate functions, wildcards, nesting, sub queries, ...etc)

JeffCoachman
CERTIFIED EXPERT

Commented:
If you don't encapsulate the query update in a transaction, you will end up compromising the data integrity.
CERTIFIED EXPERT

Author

Commented:
Hi,
Sql attached, It takes a while (could take few minutes) and I was given the task to expedite..
however, as mentioned after I pressed contrl+break I waited about 20 minutes before killing it.
sql.txt
CERTIFIED EXPERT

Author

Commented:
@MacroShadow,
As you can see from SQL attached, this is a read only query, not updatable, so is this risky to be killed?
CERTIFIED EXPERT

Commented:
Considerably less risky, but there still is risk of corruption to the FE, which is even less of concern because it can be easily replaced.
CERTIFIED EXPERT

Author

Commented:
Hi Experts,
While working on expedite this query I found out something marvelous..
Instead of joining them all at once, I split it into 2 queries, the first took all data that comes from sql tables, and the second takes the results of first query and join them with the access tables.
The result is incredible...
It takes seconds instead of few minutes!!!
Now I can enhance it even further by having the first query be converted to a pass-through query or save it as a view in sql and link it as it would be a table.
CERTIFIED EXPERT

Commented:
Seems like you're problem is solved <grin>
CERTIFIED EXPERT

Author

Commented:
@MacroShadow:
Thanks, Indeed this was the answer for my original question, I just got taken by other topic that should really be posted in another thread.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.