Ask a Question related to Microsoft SQL / MS SQL Server, Design and Development.
-
Ioannis Demetriades #1
Locking a single row - what type of a cursor to use?
Hi,
What's the best way to keep a record locked while you are modifying it so
that nobody else can change the record (reading it should be allowed)?
My first guess would be to create a cursor in the following way:
Declare myCursor CURSOR LOCAL SCROLL_LOCKS FOR
SELECT RefNextSeqNo, IsRefAutoGen, RefPrefix
FROM TrxnTypes
WHERE id = @TrxnTypeId
(id has a unique index on it and the query will therefore return at most 1
row)
Is that a good way of locking a single row so that it can still be read by
the others but it cannot be modified?
Thanks
Ioannis
Ioannis Demetriades Guest
-
Ref Cursor and type
Hi all I finally got the Ref Cursor stored procedure working but am stuck on the following. I have this package body: CREATE OR REPLACE... -
Illustrator CS type cursor, character & formatting
Has anyone else had a problem with the text cursor in a text box in Illustrator CS not being visible? It does not matter where you try to position it... -
Is there a way to assign multiple variables a single value on a single line?
i tried $f1, $f2, $f3 = '1'; and list($f1, $f2, $f3) = 1; neither work... second obviously cuz its looking for an array on the right side,... -
cursor 200-problem on mac but not pc? how to swap cursor image?
Hi, I want to hide the cursor in my projector. I've been using "cursor 200" for some time now and it works fine. But now, when I try my projector... -
Change the "web hand" cursor in normal arrow cursor?
Visit my page at http://www.frenchberliner.com and see the swap image...when you fly over it to see the effecct the cursor changes in a small hand as...



Reply With Quote

