Hi,
I have a Select Into (creates a new table) SQL statement that uses the fields from 27 other tables. The new table ends up with 500+ fields, with >20,000 records.
In Query Analyzer it takes about 45 seconds. With an ADO connection from an Access front end it times out, even with the timeout set at 120 seconds.
I am not showing the long SQL statement here, but this is how it is executed:
conn.CommandTimeout = 120
conn.Execute (select_ssql)
Is something wrong here? I would have thought that this just sends the whole SQL statement to SQL Server and it would process it in the same way. Is this not so? Any ideas how to speed this up from the front end. I can't ask my client to use Query Analyzer.
Thanks!
I have a Select Into (creates a new table) SQL statement that uses the fields from 27 other tables. The new table ends up with 500+ fields, with >20,000 records.
In Query Analyzer it takes about 45 seconds. With an ADO connection from an Access front end it times out, even with the timeout set at 120 seconds.
I am not showing the long SQL statement here, but this is how it is executed:
conn.CommandTimeout = 120
conn.Execute (select_ssql)
Is something wrong here? I would have thought that this just sends the whole SQL statement to SQL Server and it would process it in the same way. Is this not so? Any ideas how to speed this up from the front end. I can't ask my client to use Query Analyzer.
Thanks!