Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restore from .BAK file
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Backups
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01591308
Message ID:
01591338
Views:
56
See http://www.nigelrivett.net/SQLAdmin/s_RestoreDatabase.html

>
>In order to write a script that would restore all databases from a certain folder - without hard-coding each database name - I would need to scan all files with extension *.BAK. How can I create a cursor and scan all files from a folder into the cursor (using T-SQL)?
>Or is there a better way to approach the task?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform