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 Administration
 How to identify SQL Versions without logging in

Author  Topic 

jarthda
Starting Member

10 Posts

Posted - 2013-02-13 : 12:05:52
Is there a way to deduce what version of SQL Serve is installed by looking at the executable and path of the agent and engine? I have a large list of installations and cannot login to them but would like to report on what version they are. These are two examples.

C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\SQLAGENT90.EXE -i MSSQLSERVER


C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\SQLAGENT.EXE -i MSSQLSERVER



Jarthda
Embarcadero/SQL Server/and now... Informatica

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-02-13 : 12:53:19
cant you access servers from SSMS? if yes you can use

SELECT @@VERSION

to get vesrion info

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

Go to Top of Page

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-02-13 : 14:55:29
I am not 100 percent sure, but I think this power shell script enumerates the servers including their versions: http://gallery.technet.microsoft.com/scriptcenter/Create-Inventory-of-SQL-19d61963 I have only looked through it in the past, never really run it, but please do check it out to see if that will meet your needs.
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2013-02-14 : 10:52:14
SELECT SERVERPROPERTY('ProductVersion') AS Version, SERVERPROPERTY('ProductLevel') as SP - once you've logged on

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
   

- Advertisement -