Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to get Host name and SQL Instance Name by T-SQL

$
0
0

I am using SQL 2000, 2005 and 2008. I have few multi instances SQL servers. I would like to gather following information:

Host Name

SQL Instance Name

SQL Version

Server1

Server1

SQL 2000

Server1

Server1\ABC

SQL 2005

Server1

Server1\XYZ

SQL 2008

Server2

Server2

SQL 2008

Is there any way I can get it by T-SQL? Any help would be appreciated.

Thanks

Saumen 


Viewing all articles
Browse latest Browse all 23857

Latest Images

Trending Articles



Latest Images