dbisavail

DB Library for C

DB Library for C

dbisavail

Determines whether a DBPROCESS structure is available for general use.

Syntax

BOOL dbisavail ( PDBPROCESS dbproc );

Arguments

dbproc

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

Returns

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

Remarks

dbisavail indicates whether the specified DBPROCESS structure is available for general use. When DBPROCESS is first opened, it is marked as being available until it is used. Many DB-Library functions automatically set 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 structure.

See Also

dbsetavail