Options

Import databases

Kidde82Kidde82 Posts: 4
edited November 14, 2011 12:18PM in SQL Multi Script
Hi,

I have seen a post about this topic back from 2010 without any answer.

My problem is that I have a sql-script that gives me all database names of every database server where the customer has a certain release version.

Then I have to manually per database server select these databases in Multi Script.

It would be awesome and save me alot of time if I somehow can import the names of all databases I want to select instead of doing this manually every time.

Thanks in advance!

Regards,

Christian Persson

Comments

  • Options
    Hello,

    MultiScript won't do this but you may be interested in a utility to import all reachable servers and databases from your network:
    http://labs.red-gate.com/Tools/Details/MultiScriptLM
  • Options
    Hi Brian and thanks for your reply.

    Adding our servers is no problem since we just have 5 servers. It is adding 50 out of 500 databases on each of the 5 servers that is time consuming.

    But it would be a nice feature in the future which would save me and perhaps many others a lots of working hours.. :)
  • Options
    Just to clarify, List Exporter will add all databases on all of the servers it detects.
  • Options
    spivey24spivey24 Posts: 24
    edited November 14, 2011 12:18PM
    We have about 180 databases across 6 servers now, and they are constantly changing with new databases and servers being added! The utility mentioned is not nearly enough to keep up with this.

    I ended up writing a .NET application that builds the distribution list XML file that Multi Script uses each time it runs. Gives me exact control over building the lists I need in different ways. Also allows me to order the database list based on server so it will execute all scripts on all servers at once (since Multi Script seriosly lacks the option for parallel execution across servers instead of databases)

    I posted the code to generate the list at:
    http://spivey24.blogspot.com/2011/11/sq ... dgate.html
  • Options
    Spivery24: Thank you, great idea!
    I have a sql-script that I run on each server manually which gives me all databases with a certain version. With that result I should pretty easily be able to create a distribution list. Where can I find the xml-file? Dont find it in the install dir or in my documents folder.
    /Christian
  • Options
    Depending on OS, the filepath should be something like: C:\Users\XXXX\AppData\Roaming\Red Gate\SQL Multi Script\Application.dat

    I posted the code to generate the list at:
    http://spivey24.blogspot.com/2011/11/sq ... dgate.html
Sign In or Register to comment.