Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Links Database Forum

» Database Journal Home
» Database Articles
» Database Tutorials
MS SQL
Oracle
DB2
MS Access
MySQL
» RESOURCES
Database Tools
SQL Scripts & Samples
Links
» Database Forum
» Sitemap
Free Newsletters:
DatabaseDaily  
News Via RSS Feed


follow us on Twitter
Database Journal |DBA Support |SQLCourse |SQLCourse2
 

Featured Database Articles

MS SQL

Posted Jun 1, 2005

Enumerate SQL Server Names from "SQL Server Enterprise Manager" - Page 2

By Muthusamy Anantha Kumar aka The MAK

Method 1

Some database administrators have the habit of registering the servers under the general group "SQL Server Group." [Refer Fig 1.1]

Now execute the VB Script as shown below.

cscript scanEM.vbs "SQL Server Group"

When the Script is executed, you would see that the script enumerates all of the SQL Servers listed under the group "SQL Server Group." [Refer Fig 1.3]

Method 2

Some database administrators organize the Enterprise manager by creating different groups and subgroups. [Refer Fig 1.4]


Fig 1.4

Now Execute the VBScript as shown below. [Refer Fig 1.5]

cscript scanEM.vbs "BCApplication\Prod"


Fig 1.5

When the Script is executed, you would see that the script enumerates all of the SQL Servers listed under the group "BCApplication\Prod." [Refer Fig 1.6]


Fig 1.6

Conclusion

This article has examined the various methods of enumerating all of the SQL Servers that are registered in Enterprise manager.

» See All Articles by Columnist MAK



MS SQL Archives

Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 




Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
SQL 2005: SSIS: Error using SQL Server credentials poverty 3 August 17th, 07:43 AM
Need help changing table contents nkawtg 1 August 17th, 03:02 AM
SQL Server Memory confifuration bhosalenarayan 2 August 14th, 05:33 AM
SQL Server Primary Key and a Unique Key katty.jonh 2 July 25th, 10:36 AM