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
 How do I find my server name

Author  Topic 

Jgries
Starting Member

17 Posts

Posted - 2011-12-02 : 12:04:50
I'm trying to execute a query and I need my server name for the BCP Queryout function, but I have no idea where to find it. Any help is appreciated.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-02 : 12:07:14
SELECT @@SERVERNAME

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -