Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Database refresh - Adding back User and Roles

$
0
0

Hi,

Database refresh between environments is a common activity in a development environment. During the refresh process, the user permissions( User ID, roles)  available in the existing database get overwritten by the new database.

Is there a script to utilize which will :

1) get the users and roles and save it in excel and csv prior to refresh.

2) Post database refresh, another script which will read through the excel and add the users and roles back ?

Thanks


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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