SQL-server: Get current database name
It can sometimes be handy to know in which database you are working. To get the name of the current database you can use a simple script:
Resultset:
------------------------
NorthWind
(1 row(s) affected)
programming.torensma.net: Code Snippets
It can sometimes be handy to know in which database you are working. To get the name of the current database you can use a simple script:
Resultset: