Best script to restore multiple databases with SQL Server 2012?
问题 I have to restore around 60 SQL databases of different sizes. I googled to find a script to restore all databases after each other , just picking it 1 by 1 from my folder. I was not that successful, probably because I am quite new to SQL etc. It can be either done in powershell or sql command line, what I found for now was something like this: RESTORE DATABASE [db1] FROM DISK = N'C:\folder\db1.bak' WITH FILE = 1, NOUNLOAD, STATS = 10 GO RESTORE DATABASE [db2] FROM DISK = N'C:\folder\db2.bak'