Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 taking over hosting a database sqlserver 2008

Author  Topic 

bbrown722
Starting Member

5 Posts

Posted - 2010-10-25 : 12:21:22
how to get name of database sqlserver 2008

BRENDA BROWN

pk_bohra
Master Smack Fu Yak Hacker

1182 Posts

Posted - 2010-10-25 : 12:27:08
Try:
select @@SERVERNAME
Go to Top of Page

bbrown722
Starting Member

5 Posts

Posted - 2010-10-25 : 13:52:54
Thank you so much for your help. But that did not work.

BRENDA BROWN
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-10-25 : 14:10:23
Define 'did not work'

Syntax error?
Not the answer you want? In that case, how do you tell and please explain more what you want.

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -