G
Guest
I'm using VB.NET to query a SQL 2000 database through a view.
The query I am attempting is a SELECT COUNT query. When I run the query in
SQL Analyzer, it returns the count of around 3000 records in 1 second, but
when I run it in code with the sqlCommand object in code, with the same 2
parameters, it times out.
I tried increasing the CommandTimeout to 90 seconds and it still times out.
Has anyone experienced this? What am I doing wrong?
The query I am attempting is a SELECT COUNT query. When I run the query in
SQL Analyzer, it returns the count of around 3000 records in 1 second, but
when I run it in code with the sqlCommand object in code, with the same 2
parameters, it times out.
I tried increasing the CommandTimeout to 90 seconds and it still times out.
Has anyone experienced this? What am I doing wrong?