dbgettime

Returns the number of seconds that DB-Library waits for SQL Server to respond to a Transact-SQL statement.

Syntax

INT dbgettime ( void );

Returns

The timeout value ¾ the number of seconds that DB-Library waits for a SQL Server response before timing out. A timeout value of 0, the default, represents an infinite timeout period.

Remarks

dbgettime returns the length of time in seconds that DB-Library waits for a SQL Server response during calls to dbsqlexec, dbsqlok, dbresults, and dbnextrow.

The program can call dbsettime to change the timeout value.

See Also

dbnextrow, dbresults, dbsettime, dbsqlexec, dbsqlok