dbname

DB Library for C

DB Library for C

dbname

Returns the name of the current database.

Syntax

LPCSTR dbname ( 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

A pointer to the null-terminated name of the current database.

Remarks

If you need to keep track of when the database changes, use dbchange.

See Also

dbchange