March 17, 2004 at 3:04 pm
Is it possible to retrieve the name of the computer where an instance of ss2k exists?
thanks in advance,
Billy
March 17, 2004 at 3:25 pm
select @@servername from query analyzer
Steve
March 18, 2004 at 2:08 am
-- Computername on which SQL server is running
SELECT 'MachineName: ' + CONVERT(char(20), SERVERPROPERTY( 'MachineName' ) )
-- Servername and Instance name of SQL Server
SELECT 'ServerName: ' + CONVERT(char(20), SERVERPROPERTY( 'Servername' ) )
/rockmoose
You must unlearn what You have learnt
March 19, 2004 at 8:38 am
March 19, 2004 at 9:39 am
Impressive! The people on this site never ceases to amaze me!
Billy
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply