Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys please can you give me an advise on this.
I have a program in vb6 with sql server database and I got an error during running a query that look up in a view in sql server. But if I run it thru sql server console it runs well...

Any suggestions for those who encounter or has a opinion on these...thanks guys...
Posted
Comments
Bala Selvanayagam 16-Apr-12 13:14pm    
How long it takes to run the query and get the results in query analyser ?

My understanding is that it does not work in the VB6 environment but works when directly executed on the SQl server ?
Nelek 16-Apr-12 17:11pm    
If the proposed issue of Timeout is not what gives the problem, please use the "improve question" to add a piece of the relevant code where the error occurs. People here will get it easier to help you if you give more information.

1 solution

Your command could be timing out (default is 30 seconds) read the following link:
http://stackoverflow.com/questions/4327610/resolving-an-ado-timeout-issue-in-vb6[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900