Solved

SQL Server Version Info

Posted on 2013-06-04
3
344 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
3 Comments
 
LVL 4

Expert Comment

by:erik_nodland
Comment Utility
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
Comment Utility
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 40

Expert Comment

by:Sharath
Comment Utility
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now