Solved

osql -L and sqlcmd -L need to display verision type

Posted on 2013-02-06
3
541 Views
Last Modified: 2013-05-04
I can run other command and return all the SQL servers on the network which is great. There of so many of them and I also need the verision (ie standard or enterprise) anyone have a powershell command or dos command that can do that? I have 2003 and 2008 boxes.
0
Comment
Question by:MXadmin
[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 50

Accepted Solution

by:
Lowfatspread earned 500 total points
ID: 38861980
have you considered using

sqlcmd -Q "select @@version" -dmaster -E  against each server?
0
 

Author Comment

by:MXadmin
ID: 38864188
The idea is to run it from a remote server and display results. If have to log into each machine it defeats the purpose of the project.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 38866480
In other words you are not prepared to copy the output from sqlcmd -L and modify it in a text editor to match what Lowfatspread is advocating?

Or perhaps you are saying that you do not have permission to log on to all those SQL Servers?  If that is the case you may be SOL.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

A safe way to clean winsxs folder from your windows server 2008 R2 editions
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

695 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