TonyRobinson
Programmer
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?