$ 0 0 You could put the list of databases to restore in a table, and use a cursor to iterate through that table to form the script.