Jul 20, 2005 #1 nacrotek Programmer Jul 20, 2005 5 US Is there a hidden @@ variable, sp_ proc, or other feature which you can query to get the name of the current DB? I'm looking for something like: declare @currentDBName varchar(100) select @currentDBName = <get current DB name> Thanks in advance
Is there a hidden @@ variable, sp_ proc, or other feature which you can query to get the name of the current DB? I'm looking for something like: declare @currentDBName varchar(100) select @currentDBName = <get current DB name> Thanks in advance