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
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Wednesday, September 17, 2014 12:42 PM
Points: 621, Visits: 306
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: Yesterday @ 6:06 AM
Points: 428, Visits: 991
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