Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top