Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

To create such script which will fetch all this data in form of create command

$
0
0

Whenever I do a restore I always forget to reapply some database roles or application roles in post restore steps.We have one database of very different db roles,Grant permissions,Login and User permissions and they changes also frequently.

What dmv's I required to create  such script which will fetch all this data in form of create command and after restore I just have to run those create commands and all the rights should visible as before .


Thanks


Viewing all articles
Browse latest Browse all 12963

Trending Articles



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