Translate

Showing posts with label Get Current Database Name. Show all posts
Showing posts with label Get Current Database Name. Show all posts

Tuesday, February 19, 2013

SQL SERVER Get Current Database Name


SELECT DB_NAME() AS DataBaseName
It will give the name of the database that currently running while running the query.