What's the easiest way to check for the SQL Server Edition and Version using powershell?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- How to Debug/Register a Permanent WMI Event Which
- What is the best way to cache a table from a (SQL)
To add to Brendan's code.. this fails if your machine is 64-bit, so you need to test appropriately.
http://msdn.microsoft.com/en-us/library/cc281847.aspx
Well, here's the old school way, that's easy:
And here's how I use it from Serverspec: