Solved

What is the best approach for overwritting data in a table that users are accessing?

Posted on 2015-02-24
2
41 Views
Last Modified: 2015-03-03
Hi Experts.

I am trying to overwrite data in a production table that is accessed by users at the time. What is the best approach to accomplish this? what are the best practices?

Thanks in advance.
0
Comment
Question by:devguru001
2 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 250 total points
ID: 40627815
I think best practice is to ensure that the locks are as minimal as possible, both hen users are accessing the data and when you are writing it.
 
It may be that you need to consider to READ UNCOMMITTED or NOLOCKfor example. This web link shows that no shared locks are issued or exclusive locks are honored.
0
 
LVL 45

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 250 total points
ID: 40627910
A simple UPDATE command should do it but don't forget that if the user is viewing the data at the same time that it will need to be refreshed or else it will deal with old data.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now