Does anyone know how to get the name of the database currently connected to?
The client can choose Database A or Database B to connect to.
I'm trying to write some error logging code and I would like to have in the error log information which database the client logged into and if possible some information from the extended properties of the database.
Does anyone know if this is possible?
If it is where I can find some documentation on how to do it.
If there is no documentation provide an example?
Thanks