Is there a query in SQL Server 2005 I can use to get the server\'s IP or name?
It's in the @@SERVERNAME variable;
SELECT @@SERVERNAME;