Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Much better way to "Get name of current database" Expand / Collapse
Author
Message
Posted Saturday, September 29, 2007 6:31 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Friday, April 04, 2014 7:04 AM
Points: 598, Visits: 299
Comments posted to this topic are about the item Much better way to "Get name of current database"


Post #404370
Posted Wednesday, August 26, 2009 8:09 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Saturday, April 12, 2014 12:29 AM
Points: 419, Visits: 966
Thank you thank you. How nice that searching for "Get Current Database" on this site got the answer I needed, but on Books online, the same answer never showed (or if it did, after about 100 possibilities, I just decided to try something else).

And, to top it off, I have used DB_Name() before, but had forgotten the exact syntax (including the underscore).

Bob
Post #777521
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse