SQL Server 2000, VB.Net 2010
I am executing a stored procedure from VB.Net in a database on one server, linking
to a database on another server. There are about 380 million rows in the table on
the other server. I select on the primary key, an int, to start with a value just
before the most recent three months. I also select on a datetime index for a date
range of one month.
When I run the stored procedure in SMS (2008), it gets results in about two minutes,
returning about 6.7 million records. When I run it with the VB program, it times
out in about 30 seconds. Setting the timeout longer on my connection string to
the database I am running in has no effect.
Is there a way to increase the time before timing out?