Monday, 16 July 2012

Sql Server Scripts : Get database name of current connection

You can get current database name using In Built SQL function "DB_NAME()".

SQL Query :
SELECT DB_NAME() AS DataBaseName

Output :


This is the very useful SQL Server Scripts.

Note : Give Us your valuable feedback in comments. Give your suggestions in this article so we can update our articles accordingly that.

No comments:

Post a Comment