Solved

SQL Server Version Info

Posted on 2013-06-04
3
357 Views
Last Modified: 2013-06-10
I am gathering the version info of some SQL servers for an audit. Is there a way to get the same information as you would from running the Select @@version query without having to log into the SQL management studio?

-Thanks
0
Comment
Question by:Allanore
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:erik_nodland
ID: 39219289
Hi

You can use sqlcmd to do it from the command line.

Something like

sqlcmd -S myServer\instanceName -i C:\version.sql

where version.sql cotains the sql command

select @@version
go

This can obviously be done remotely as well assuming you have rights. If you need to specify a username\password then just add -U and -P switches.

thanks
Erik
0
 
LVL 19

Accepted Solution

by:
Bhavesh Shah earned 500 total points
ID: 39219313
hi,

check out this link.
and follow the step.

if you need any assitance, get back to us.

http://blogs.msdn.com/b/petersad/archive/2009/11/13/sql-server-2008-discovery-report.aspx
0
 
LVL 41

Expert Comment

by:Sharath
ID: 39220645
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question