Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a large query to SQL server 6.5 from VB 5.

Status
Not open for further replies.

TonyRobinson

Programmer
Mar 11, 2001
5
GB
I have written a VB programme which produces crystal reports from a SQL server resultset based on criteria entered. This works fine apart from for 1 set of criteria, where the query never finishes. I have captured the query created and run it directly in the SQL query window again it doesn't finish, however if I insert "go" between the statements it takes 10 minutes to complete. VB will not allow the "GO" statement to be passed, as I'm creating 2 temporary tables I'd rather not have to resort to using multiple connections. Any Ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top