-1

Im getting a time out expired.

The timeout period elapsed prior to completion of the operation.

If I execute the same query in SQL server management its getting executed but trying to execute the query through the program does not succeed.

Where could I have gone wrong?

The query is very simple and its throwing exception. The time out set is 90 sec.

Select isnull(max(voucherid),0)+1 from XXX
dbmanager.executequery(con,"uspXXX",parameter);
Marco
  • 22,856
  • 9
  • 75
  • 124
Naveen
  • 1

1 Answers1

0

Rebuild your statistics and/or indexes on that table.

See this answer.

Community
  • 1
  • 1
Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541