Solved

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

Posted on 2015-02-24
2
43 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 47

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

776 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