Is it possible to ensure to block a raw when is selected?

I would like to know if it is posible to ensure block a row when is selected and then not to be able to be selected from another sesión.
I tried xlock, rowloxk but sometimes the second sesión is able to select the row. I can't reproduce this behaviours always, but sometimes happend.
By the moment, the only way to ensure that is doing a fake updating of the row inside a transaction. But this is an extra cost for the database and I would lie to know if there is any other option to ensure the block of the row when is selected.
Thanks.

Hi ComptonAlvaro,
According to my knowledge, it is not possible to lock a row in a SELECT statement and make the row not to be read by another SELECT statement.
A SELECT in SQL Server will place a shared lock on a table row , and a second SELECT would also require a shared lock, these locks are compatible with one another. Therefore, one SELECT cannot block another SELECT.  Although we can lock a row by adding
‘WITH ( XLOCK, ROWLOCK)’ or ‘ WITH (UPDLOCK, TABLOCK)’ in a SELECT statement, another SELECT statement can always get around it by adding a locking hint WITH (NOLOCK) which will provide a dirty read.
For more details, please review the following link:
http://msdn.microsoft.com/EN-US/library/ms187373.aspx
Thanks,
Lydia Zhang

Similar Messages

  • Hello Community. My ipod nano 7g has been stolen - is there a possibility to find and block it if the ipod is connected via itunes?

    Hello Community. My ipod nano 7g has been stolen - is there a possibility to find and block it if the ipod is connected via itunes?

    Nope.  You can report the theft to the police, and that's about it.

  • Is it possible to set billing block when create delivery?

    Hi,
    Is it possible to set billing block flag when create delivery automatically,I know it is possible to do it in SO, I also want to know is there any T-code can release billing block in so and delivery by batch?
    Thanks in advance.
    Lance

    You can set Billing Block at Order level only. However iof you want to apply Billing Block, while doing Delivery, you require to go back to Sales Order & set the Billing Block. Incase you want Billing Block for all Deliveries, then Identify a user exit & activate it such that the coding of it will go to Sales order in Change Mode & set a Billing Block.
    Regards,
    Rajesh Banka

  • Good issue from delivery not possible due to credit block

    Hi gurus,
    Please help me on this issue.while doing PGI for the delivery i am getting the following error message."Good issue from delivery not possible due to credit block "The simple credit check is assigned for the sales document type.iam doing free of charge delivery.
    What are all the possible ways to get such error
    Regards
    Vis

    but system behavior is not set in transaction OVA8, means combination of risk categories and 03 is not set.
    I think you are checking the wrong risk category, please check once again the Risk category of the payer in FD32, what is it assigned and also check OVA8 with this risk category.
    If you find the above settings are correct as per your observation, try to create a fresh cycle so that you will get the correct results as per your settings in delivery.
    In your case what you are saying is correct, may be the risk category is changed recently this you can check the change log of the payer customer in FD32( if any change takes place).
    If possible try to past the screen shot of both.
    thanks,
    srinu.

  • Is it possible to step into a CVI dll when called by TestStand?

    As the question says: "Is it possible to step into a CVI dll when called by TestStand?"
    I am sure Ray F. may have a few tricks up his sleeves...  Hope you see this post, Ray!
    I compiled a dll using CVI.  The dll is called as a test by TestStand.
    I do have an "exe" version of the code that I use for debug with a testbed, but the behaviour is not the same as testing the actual target while running TestStand.  My goal is to get as close as possible to the real events.
    Thanks,
    JLV

    Sorry about that,
    There are two ways as I was saying:
    1. You can configure the CVI adapter to Execute Steps in a External Instance of CVI (requires CVI 6.0 or greater).
    Only go to Configure->Adapters and select the LabWindows CVI adapter and click on configure and select the corresponding option.
    After that set a break point in the step that you want to debug.
    An external instance of CVI will be launched where you can set break points and step into the code.
    2. From CVI Specifying an external process:
    In CVI go to Run Specify External Process and enter the seqEdit.exe as the program name (you have to browse to the location <TestStand>\Bin\SeqEdit.exe).
    As the argument you enter the name of the sequence file you want to debug.
    Now just select Run->Debug SeqEdit.Exe
    The Sequence Edtior will be launched and you can set break point in your CVI code and step into it when the step is executed.
    Check the Using LabWindows/CVI with TestStand reference manual for more information.
    I hope it helps you to get started.
    Regards.

  • Is it possible to create a custom photo layout when creating a photo book in iphoto?

    Is it possible to create a custom photo layout when creating a photobook in iphoto? How about adding text boxes?

    Yes and no
    You can not make a custom template nor can you modify one
    You can do a page in other software and then print to PDF using the send PDF to iPhoto option and place the resulting image as a full page photo - See Old Toad's tutorial No.19 for more information.
    LN

  • HT1766 I disabled and blocked my phone when it was stolen, i have retrieved the phone and restored service. Now when i turned it on it says iphone disabled connect to itunes.. I have and no change, what do i do?

    I disabled and blocked my phone when it was stolen, i have retrieved the phone and restored service. Now when i turned it on it says iphone disabled connect to itunes.. I have and no change, what do i do?

    You need to restore the phone in itunes in order to use it again, You will have to put the phone into recovery mode and restore to factory settings   http://support.apple.com/kb/ht1808

  • I was using my iphone 4s and then the app started to not work and then my phone blocked and then when i go on home most of my apps disappeared including my settings so i cant restore with out disabling find my iphone on settings

    I was using my iphone 4s and then the app started to not work and then my phone blocked and then when i go on home most of my apps disappeared including my settings so i cant restore with out disabling find my iphone on settings please help me asap thankyou so much

    Log in to icloud.com on a web browser with your Apple ID and disable FMiP there.

  • Tree Structure - Is it possible to Open a Pop up/external window on select

    Is it possible to Open a Pop up/external window on select of any Leafe node or a parent node?
    My requirement is to create a webdynpro screen which depicts the transaction :
    ooqa in sap R/3.
    Is it possible to do that in tree structure?
    Thanks & Regards,
    Sirisha.RS

    Hi Ayyaparaj,
    Thanks for ur reply.
    but i cant use a table here. I just need a tree structure..
    I guess Its posible by writing a code for a external window open in the onselect method itself.
    Thanks & regards,
    Sirisha.Rs

  • Is it possible to embed video in keynote presentation when exporting to .pdf?

    Is it possible to embed video in keynote presentation when exporting to .pdf?

    You can place the video in Keynote but it will be exported as a still.Adobe Acrobat Pro is needed to embed video in a PDF page.

  • Hello, i have youtube videos on my iweb site.  but i would like to know if it is possible to get a 'pop-up' affect when you click on a small photo of the video, to open and play the video in a popup?

    hello, i have youtube videos on my iweb site.  but i would like to know if it is possible to get a 'pop-up' affect when you click on a small photo of the video, to open and play the video in a popup?
    we have tried using video light box, but this doesnt seem to work.

    There's an example of one at the buttom of ths page...
    http://www.iwebformusicians.com/Website-Movie-Video/YouTube.html
    Rather than link to the file, the movie is on a separate web page and uses the code shown on this page...
    http://www.iwebformusicians.com/Website-Photos/Image-New-Window.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • When I select a title in the iTunes Store and click on Play in iTunes I am sent to the download page for iTunes 10 which I have already. The selected title cannot be found anywhere in my iTunes. How can I get the title in iTunes with possibility to buy it

    When I select a title in the iTunes Store and click on Play in iTunes I am sent to the download page for iTunes 10 which I have already. The selected title cannot be found anywhere in my iTunes. How can I get the title in iTunes with possibility to buy it?

    The issue is that your credit or debit card credentials must be associated with the same country where you reside in order to purchase iTunes content.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location. You can use the iTunes Store in all countries of which you’re a resident, but you’ll either need a separate iTunes Store account for each one, or you’ll need to continually be switching the billing information on your single account. Generally, it’s simpler just to set up an alternative account for these situations, although it’s worth nothing that features like iTunes in the CLoud and iTunes Match are designed to work best when using a single iTunes Store account, as you can only switch accounts with these services every 90 days."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • Is it possible to take photos with the iphone when the flashlight is on?

    Is it possible to take photos with the iphone when the flashlight is on?
    When the light is on, it would be great to take photos without flash in dark areas or in macromode.
    How is this possible?

    My idea is using the flashlight permanently as kind of "studio light" to take Photos in macromode:
    Is it possible to take photos with the iphone when the flashlight shines permanently?
    When the light is permanently on, it would be great to take photos without flash in dark areas or in macromode.
    Especially for medical documentation (Dermatology etc.).
    I didn´t found any netsolution.
    This could be an outstanding feature for many people.
    How could this be possible? App-Solution?
    kindly regards
    MilvusMilvus

  • If I have an airport extreme and a time capsule is it possible for seamless switching between the 2 when a signal is weak or drops Main reason is as I move from my first floor to my attic office and would like to place one (airport extreme)downstairs and

    If I have an airport extreme and a time capsule is it possible for seamless switching between the 2 when a signal is weak or drops
    Main reason is as I move from my first floor to my attic office and would like to place one (airport extreme)downstairs and time capsule upstairs to get complete coverage

    In theory, yes. If you configure the two base station into either an extended or roaming network configuration, you should be able to walk a laptop between routers and the laptop should attempt to connect/reconnect to the base station providing the stronger signal ... but, in reality, this is not always 100% true.

  • Possible to have mouse activated slider with buttons for selection

    Hi,
    I was wondering if anyone has/is or if this can be dome easy enough....
    For example, instead of placing a row of buttons on the bottom of the template, instead, is it possibloe to have a mouse activated slider that the buttons are on and is activated when the mouse hovers over it.....?
    Hope that explanation is clear enough...;-)
    Cheers
    Rossco

    Captivate 7 has an option to show playbar on hover.  It becomes available when you select Overlay Playbar.  But this only applies to the standard skins that come with Captivate.  It won't help your specific need to have a set of buttons appear on hover over a hit area.
    It should be possible to do what you want.  But you'll need to group the buttons, give the group a name, create separate advanced actions that apply a fly-in and fly out effect to the group, then execute these actions via an event.  In your case you want the event to occur as a result of a rollover and rollout on a hit area.
    Captivate's slidelet object has a rollover event, but no rollout event you can use.
    The only way I know to have both rollover and rollout events is to use the Infosemantics Event Handler widget:
    http://www.infosemantics.com.au/adobe-captivate-widgets/event-handler-interactive
    Free trial version here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets

Maybe you are looking for

  • Time capsule painfully slow wifi

    New time capsule , painfully slow wifi , cisco works lightning fast so the issue is with the TC. Looked at forums and I see it's a common isssue. Any ideas that actually work?

  • HELP!HELP!! Please read this!!!!

    I am working on a web application called the Bookstore and deployment is through J2EE1.2.1(old). All the compilation of the servlets I used, it showed no errors at all and deployment Progress window shows that the deployment is complete. But anytime

  • Flash Player Updater 11

    I have got a Trojan Downloder JQAC in FlasPlayer Updater, I have uninstall Flash Player in the programs but I can't uninstall in Windows\system32\macromed\Flash, what can I do to eradicate this Trojan, thank you for your answer

  • Outer join with nested tables

    I am dealing with a nested table (I simplified the case for purpose of posting): CREATE TABLE boris_main_tab ( IND_SSN          VARCHAR2(9) PRIMARY KEY, children          B_CHILDREN_TBL, ) nested table children stored as.... where B_CHILDREN_TBL is d

  • How to set variable default value by program?

    Dear all, We would like to set a BW variable default value by program (not using query designer). Do you have any ABAP sample code for this? I'm really new in ABAP programming. we are using BI 7.0 Thank you for your help! Olivier DESFOUR