Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Automate Restore Database process which has 1 mdf, 2 ndf, 1 ldf files.

$
0
0

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!!!



Viewing all articles
Browse latest Browse all 8428

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>