Yasir Masood
SSChasing Mays
Points: 601
More actions
October 3, 2006 at 1:28 pm
#115873
Hi Guys,
How can I find the current DB Name in a stored procedure.
I would appreciate your help.
Thanks.
andrewkane17
SSCertifiable
Points: 7529
October 3, 2006 at 1:47 pm
#663945
select
db_name() should give you what you need
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply