Registering 300+ SQL Servers to management studio from a list

  • Hello

    I have a spreadsheet which consist of a list of all SQL servers.Can someone help me with trick or script to register a list of SQL server from a spreadsheet/txt file to management studio.

    Register/connect all the SQL server one by one is time consuming when I have a list of 300+ SQL servers to manage them remotely.

  • Well in Management Studio, under the Registered Servers window, you can right click on a folder, go to tasks and import a file, which will do the registering. For the format of the file, you may have to export a Server and test.

  • learned something new today; thanks graham; didn't even know about the Registered Servers panel until this post. lots of options like automatic discovery of all servers on the network and stuff.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Lowell (11/30/2010)


    learned something new today; thanks graham; didn't even know about the Registered Servers panel until this post. lots of options like automatic discovery of all servers on the network and stuff.

    Glad to help 😉 considering all the help I get from this forum....

  • If you're using SSMS 2008, there is another neat trick. In the Registered Servers panel, make separate folders for each logical (to you) group. Then, you can right-click the group, select "New Query", and a query window opens up connected to all of the servers. Run something like "SELECT @@ServerName", and you'll get responses from all of the servers.

    Wayne
    Microsoft Certified Master: SQL Server 2008
    Author - SQL Server T-SQL Recipes


    If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it!
    Links:
    For better assistance in answering your questions
    Performance Problems
    Common date/time routines
    Understanding and Using APPLY Part 1 & Part 2

  • WayneS (11/30/2010)


    If you're using SSMS 2008, there is another neat trick. In the Registered Servers panel, ake separate folders for each logical (to you) group. Then, you can right-click the group, select "New Query", and a query window opens up connected to all of the servers. Run something like "SELECT @@ServerName", and you'll get responses from all of the servers.

    always knew about that, but never actually tried it, cool!

  • Same with me too. really useful option. thanks

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply