1

We are investigating a timeout issue and would like to replicate it as part of initial testing.

I am new to Devart, Borland C++ Builder 6 and SQL Server and unsure of the syntax required. I am looking for example code to execute a query or series of queries to generate an indefinite delay which will time out.

stukelly
  • 4,257
  • 3
  • 37
  • 44
Michael Sandler
  • 1,290
  • 3
  • 17
  • 30

1 Answers1

2

Assuming you want a database command timeout, you can execute the SQL command:

WAITFOR DELAY 'hh:mm:ss'

setting hh:mm:ss to some time period longer than your application's command timeout

Ed Harper
  • 21,127
  • 4
  • 54
  • 80