本文收錄本人工作中檢視軟體版本資訊的指令:
作業系統:
windows
:打開指令行→systeminfo >xx.txt,即可把windows的資訊輸出到xx.txt檔案裡面。一般可以用來檢視作業系統的位數等等資訊。
Ubuntu:sudo lsb_release -a
軟體:
SQLServer:打開ssms→
或者執行:均可檢視SQL SERVER的版本甚至更詳細的資訊。
執行系統存儲過程:也能獲得資訊。但該存儲過程可能以後版本不可用
執行語句:同樣可以獲得資訊。
由于我用的是2008 R2,是以隻列出該版本的版本号:
10.50.1600.1 SQL Server 2008 R2 RTM
10.50.1702.0 SQL Server 2008 R2 RTM Cumulative Update 1
10.50.1720.0 SQL Server 2008 R2 RTM Cumulative Update 2
10.50.1734.0 SQL Server 2008 R2 RTM Cumulative Update 3
10.50.1746.0 SQL Server 2008 R2 RTM Cumulative Update 4
10.50.1753.0 SQL Server 2008 R2 RTM Cumulative Update 5
10.50.1765.0 SQL Server 2008 R2 RTM Cumulative Update 6
10.50.1777.0 SQL Server 2008 R2 RTM Cumulative Update 7
10.50.1797.0 SQL Server 2008 R2 RTM Cumulative Update 8
10.50.2500.0 SQL Server 2008 R2 SP1
10.50.2769.0 SQL Server 2008 R2 SP1 Cumulative Update 1