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