Click here to Skip to main content
15,886,770 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to find sql server version using cmd
Posted

1 solution

Strange request...but doable.
Run SQLCMD in a command prompt:
SQLCMD -S MyComputer\MyServer

In my case, that would be:
SQLCMD -S GRIFFPC\SQLEXPRESS
When the server is connected, you will get a "1 >" prompt.
Enter:
select @@version
go
And press enter:
1> select @@version
2> go




--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
------------------------------------------------------------
Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)
        Jun 17 2011 00:54:03
        Copyright (c) Microsoft Corporation
        Express Edition with Advanced Services (64-bit) on Windows NT 6.1 <X64>
(Build 7601: Service Pack 1)



(1 rows affected)
 
Share this answer
 
Comments
SmilingSathish 5-Mar-14 12:52pm    
Thanks OriginalGriff
OriginalGriff 5-Mar-14 13:58pm    
You're welcome!
george4986 5-Mar-14 15:28pm    
+5v ;-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900