Translate

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.

No comments:

Post a Comment