Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9003623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:44:08+00:00 2026-06-16T00:44:08+00:00

Our non production servers have information refreshed into them on a regular basis from

  • 0

Our non production servers have information refreshed into them on a regular basis from production. The way this is done is to do a full backup of production, then restore it onto the non-production SQL Server. This has the undesired effect of overwriting all of the permissions for users.

I have been trying to find a method to pull those permissions out of the database in the form of a script. That way when the database is refreshed, I can run the script against the newly refreshed database and restore the permissions.

I tried to find the data in sys.database_principals and sys.database_permissions, but my SQL-fu isn’t good enough to make this data into something usable.

What’s the best method to get this data out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:44:09+00:00Added an answer on June 16, 2026 at 12:44 am

    K. Brian Kelley has a pretty good script for this at SQLServerCentral.

    You can also try some of the “Related” links on the right of this page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our app we have a form that can be opened up non-modally. We
We are currently transitioning our website to Drupal 6.x from a non Drupal source.
Frequently we need to get some test data from our production sql server 2008
We deployed our first Symfony2 website in production this week. Strange things started to
Our users return to our web site from an external site, to a URL
Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
Our company produces cross-platform software and we have Bamboo instance which is building projects
Our Django project is getting huge. We have hundreds of apps and use a
Some of our non-technical users are having problems where a dialog MessageBox in our
Though at our company all people are non-native english speakers we try hard to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.