The database used in the connection if one was set,
the value is also updated by the database returned by TSQL response messages.
This value may not be accurate as one can't be certain what database a statement
executed as statements can be over several databases or even not in the database used when opening the related connection.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2