Is it possible to find the SQL version of all SQL servers in my environment?
Is it possible to find the SQL version of all SQL servers in my environment?
Sure, you can setup Central Management Server (CMS) and then run select @@version from the group of servers. If you have a list of servers, you could also use PowerShell to query each server. You have several options, just do a little digging on Google and you'll be able to knock this out. CMS is an easy route to go.
Hi Tim, Thanks for your response. What I am trying to do is create a process that would run @@versions against all the server in the CMS and dump the results into a table. I don't wish to manually right click on CMS and execute the query.
Take a look at dbatools. There are several scripts related to RegServer that may give you the option to query using PowerShell to reference a CMS group. You can then pipe the results out to a file or SQL Server table and automate the script to run as often as you would like.
22 People are following this question.