I would like to do following:-- Any help greatly appreciate....
Input Parameters :-- dbname, backup location
Stored Procedure should do following::--
1. Based on given dbname information, find all mdf, ldf, ndf files information of this database
2. execute restore statement based on step 1 information
3. it should work if database has different file structures, like 1 mdf, 1 ldf or 1 mdf,2 ndf,1 ldf.........etc..........
please help!!!