Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADO Data > Query timeout
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 4261 of 4320
Post > Topic >>

Query timeout

by "david.cawkwell@[EMAIL PROTECTED] " <david.cawkwell@[EMAIL PROTECTED] > Jul 4, 2008 at 07:24 AM

Hi Group,

I using VB 6 and doing a query on an SQL server database.
The query is on a view and has worked fine for a year or so.
All of a sudden the user is getting query timeout.
This is not due to data size as the query can come back fairly
quickly.

In the code for my db connection I have done the follow
so I don't get held up by locked records.

db.IsolationLevel = adXactReadUncommitted
db.BeginTrans
db.CommitTrans
db.CommandTimeout = 60

However yesterday while my application was held up.
I could still do a query on the same view in SQL server or query
analyser without a problem.

Strangely I did a query

select * from table withlock;
then
select * from table with nolock;

and the problem strangely went away.

I'm convinced that it must be locking of some kind
but using SQL Manager I couldn't see any locks on the tables in
question.

Any ideas what is wrong, what I am doing wrong or how do find what is
holding
up the query?
 




 3 Posts in Topic:
Query timeout
"david.cawkwell@[EMA  2008-07-04 07:24:09 
Re: Query timeout
"Bob Barrows [MVP]&q  2008-07-07 08:27:55 
Re: Query timeout
"david.cawkwell@[EMA  2008-07-07 05:47:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:20:08 CST 2008.