Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 List of Servers

Author  Topic 

Pras
Starting Member

10 Posts

Posted - 2008-05-22 : 19:17:08
Hi,

How can i fetch the list of SQL Servers available along with their status like whether it is active or inactive?

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-05-22 : 23:04:49
Can run 'osql -L' in dos prompt to get list of running sql servers on your network. For inactive ones, we use bindview to look at servers' file system.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-05-23 : 03:43:49
what's bindview?

_______________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.0 out!
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-05-23 : 03:46:09
http://en.wikipedia.org/wiki/BindView


E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

Pras
Starting Member

10 Posts

Posted - 2008-05-27 : 19:44:16
quote:
Originally posted by Pras

Hi,

How can i fetch the list of SQL Servers available along with their status like whether it is active or inactive?



Is there a way to get the details using a query what 'Osql -L' is listing from command prompt.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-05-27 : 19:55:04
Just run osql -L from xp_cmdshell if you want to do it inside SQL Server. You can put the results into a table too using INSERT INTO/EXEC.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Database maintenance routines:
http://weblogs.sqlteam.com/tarad/archive/2004/07/02/1705.aspx
Go to Top of Page
   

- Advertisement -