dbisavail

Determines whether a DBPROCESS is available for general use.

Syntax

BOOL dbisavail ( PDBPROCESS dbproc );

where

dbproc
Is the DBPROCESS structure that is the handle for a particular workstation/ SQL Server process. It contains all the information that DB-Library uses to manage communications and data between the workstation and SQL Server.

Returns

TRUE if the DBPROCESS is available for general use; FALSE otherwise.

Remarks

dbisavail indicates whether the specified DBPROCESS is available for general use. When a DBPROCESS is first opened, it is marked as being available until it is used. Many DB-Library functions automatically set the DBPROCESS to "not available," but only dbsetavail resets it to "available." This facility is useful when several parts of an application are trying to share a single DBPROCESS.

See Also

dbsetavail