Hello all!
Quick question: How do I find out what database I'm currently using? I can't seem to find an appropriate system stored proc in BOL. For example:
use XYZ
go
[SQL statement(s) in question]
go
RESULTS:
database
----------
XYZ
Thanks in advance for your help!
Catselect db_name()|||Thanks a bunch!
Cat
No comments:
Post a Comment