3
Nov
Get Current Database Name in SQL Server3.051

How to get current Database name in SQL Server, using select statement in below,

–Get Current Database Name
SELECT DB_NAME() AS DataBaseName

GetDBName

Reference : http://source.witssquare.com

VN:F [1.7.4_987]
Rating: 3.0/5 (1 vote cast)
VN:F [1.7.4_987]
Rating: -1 (from 1 vote)

Tags: , , , ,

This entry was posted on Tuesday, November 3rd, 2009 at 2:37 am and is filed under SQL Server. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment