Import databases
Kidde82
Posts: 4
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
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
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
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..
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
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
I posted the code to generate the list at:
http://spivey24.blogspot.com/2011/11/sq ... dgate.html