Solved

SQL Server Version Info

Posted on 2013-06-04
3
360 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

631 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