We have a problem for who I don't find any solution.
There is a VB6 program with an ADO connection and
recordset to SQL.
The connection is adopenDynamic and adLockOptimistic.
It is a large query.
The program giev following runtime error :
Run-time error '-2147467259(80004005)
Timeout expired.
I'dont' find any reasons.
Is there sombody who have the same problem?
Thanks
Nicky
Hope this helps.
Ramesh Thyagarajan, MCSD,MCDBA
Microsoft Developer support
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Microsoft Strategic Technology
Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
A few other thoughts...
- Run "UPDATE STATISTICS" to make sure the indexes are good.
- Make sure you have an index defined to make the query as effecient
as possible
- Consider specifying the index in you query to ensure SQL uses it
- Perhaps your query is too broad to begin with, or maybe you need to
employ server side temporary tables to do more work on the back end.
Mike Mattix