VenkatPalle
SSC Enthusiast
Points: 142
More actions
October 14, 2002 at 11:02 am
#64175
Is there a system variable which gives the current database name (like for example @@SERVERNAME)?
sarmistead
SSCommitted
Points: 1671
October 14, 2002 at 11:29 am
#438516
Try this:
select db_name()
Steve Armistead,
Database Administration
Panther Systems Northwest, Inc.
Vancouver, WA
Steve
October 14, 2002 at 11:38 am
#438517
Thanks Steve.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply