Quantcast
Channel: Answers for "Stored Procedure to Select/Update multiple records"
Browsing latest articles
Browse All 8 View Live

Answer by Matt Whitfield

You could just select the records you want into a table variable:DECLARE @targetRowIDs TABLE (rowID int NOT NULL) INSERT INTO @targetRowIDs (rowID) SELECT ID FROM MSG_Q WITH (updlock, readpast) WHERE...

View Article



Answer by Jesse McLain

Do you have an application on the front-end that controls user access to the underlying data? If so, you might be better implementing a solution that makes use of a 'selected rows' table that holds the...

View Article

Answer by Blackhawk-17

If you are creating a process whereby the in use records are limited to only the given user (no SELECTs against them either) you could kludge a solution by moving them into a temporary table so they...

View Article

Answer by Jeff Oresik

Some apps use an IsLocked bit field. When the records need to be held for a data change, the lock is set. The next user can select records where IsLocked = 1, but not in a data change mode. Saving the...

View Article
Browsing latest articles
Browse All 8 View Live




Latest Images