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 627453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:31:49+00:00 2026-05-13T19:31:49+00:00

This is a clarification of an earlier question I asked. It is sufficiently different

  • 0

This is a clarification of an earlier question I asked. It is sufficiently different from that question that I thought it could stand on its own.

I create snapshots of a production database semi-annually. Users are then able to view historical data by switching the back-end database from the front-end GUI. Because it is historical data, it must remain read-only.

However, sometimes new fields get added to the tables in the current database. This can cause problems if the front-end expects these fields to be present. Our solution is to add the fields on the fly, and set them to null or an appropriate default if the field is required. What this means is that the database cannot be made read-only because that would prevent changes to the table structure. To address this we give all users db_datareader, db_denydatawriter, and db_ddladmin roles.

All of this works really well and we have had no problems. However, the data can still be changed by dbo (which is me). My concern is that someday I will accidentally make a change to this historical data (probably without realizing it) and thus compromise its integrity.

Attempted Solutions:

  • I tried assigning the role of db_denydatawriter to dbo but that failed (see the aforementioned question).

  • Another suggestion from that question was to turn off and on the read-only status of the snapshot when making schema changes. That works, except that it causes roughly a two-minute delay per snapshot schema change. We don’t generally make a lot of schema changes, but I’d like to avoid the situation if possible.

Any other ideas would be greatly appreciated.

  • 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-05-13T19:31:49+00:00Added an answer on May 13, 2026 at 7:31 pm

    When new fields get added to the production database and the application changes (which is most likely done during a maintenance window), why not have a script run that updates the snapshots.

    You can then make sure that the script changes the read only status to make the update and can log all activity. This will allow you to test your script during development using the development SQL server.

    Unless I’m missing something.

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

Sidebar

Related Questions

This is a clarification question I've got from a Java EE 5 migration. I'm
I know that this question might have been asked like 100 times, but, believe
Clarification: this question is not about access modifier Confirmed that B.m() and b.m() statements
In this earlier question , the OP asked for a data structure similar to
This question is kind of a follow up to this question I asked a
This is a clarification question: I'm studying for MCTS 70-515 and in my training
Clarification: this question was about GZIPping an JAX-WS-based REST service, but I've decided to
Clarification This is part of a script that checks if a user has changed
I was trying to get clarification on this: Method-1: Dim request = CreateRequest(uri) //some
For clarification, are you able to use MySQL this way to sort? ORDER BY

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.