Wednesday, January 25, 2012

How to get Current Database Name in SQL Server ?

Hi this very interesting thing to know  the name of current database in sql server

Plz check the query

It was very simple script

.
SELECT DB_NAME() AS DataBaseName


It will give you the name the database you are running using while running the query.









Like and Share to SQL Integrity Blog

No comments:

Post a Comment

Thank You !!!!