Hi All,
I am using SQL Sever 2000 and Visual Basic 6.
When I tried to query a database using about 6 tables, I stablished inner join to 4 of them, outer join for the remaining.
This query runs for about 2 minutes and outputs about 12000 records using SQL Query Analyzer.
Upon pasting it to visual basic it generates a message connection timeout. I tried setting the property ConnectionTimeout to 800 but to no avail.
Is anyone has an idea how to do this long query with visual basic ado, what I am worried is what if it grows to about 5-10 minutes extraction? I think it is not wise to set the timeout indefinitely.
I am using SQL Sever 2000 and Visual Basic 6.
When I tried to query a database using about 6 tables, I stablished inner join to 4 of them, outer join for the remaining.
This query runs for about 2 minutes and outputs about 12000 records using SQL Query Analyzer.
Upon pasting it to visual basic it generates a message connection timeout. I tried setting the property ConnectionTimeout to 800 but to no avail.
Is anyone has an idea how to do this long query with visual basic ado, what I am worried is what if it grows to about 5-10 minutes extraction? I think it is not wise to set the timeout indefinitely.