Last active
August 29, 2015 14:07
-
-
Save JohnLBevan/a706bd92089c68293c04 to your computer and use it in GitHub Desktop.
Get Installed SQL Version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NB: replace "." with instance name (e.g. ".\sqlexpress" or "axlive\sql06") | |
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null | |
New-Object -typeName Microsoft.SqlServer.Management.Smo.Server(".") | select edition, version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment