如何使用Powershell检查SQL Server版本? [英] How do I check for the SQL Server Version using Powershell?
本文介绍了如何使用Powershell检查SQL Server版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用powershell检查SQL Server版本和版本的最简单方法是什么?
What's the easiest way to check for the SQL Server Edition and Version using powershell?
推荐答案
Invoke-Sqlcmd -Query "SELECT @@VERSION;" -QueryTimeout 3
http://msdn.microsoft.com/en-us/library/cc281847.aspx
这篇关于如何使用Powershell检查SQL Server版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文