Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default SQL Server Locking

    I have an application that allows users to select the next person in a table
    based on a callback time and an InUse bit field. It is critical that the same
    person in the table not be selected by 2 users at the same time. I have the
    select statement and an update statement that changes the bit field to 1 inside
    a transaction in a stored procedure. I thought that by putting it in a
    transaction, the row would be locked, and only one person would be able to read
    the row at a time. However, I've had a couple of occasions where 2 users
    selected the same person from the table. How should I go about ensuring that
    this doesn't happen again?

    bburkettaz Guest

  2. Similar Questions and Discussions

    1. Tickets locking
      I haven't tried this sort of thing before, so I'd appreciate some pointers in the right direction. I'm trying to create a low-key kind of event...
    2. SO Locking on Server
      I am trying to understand how to lock and unlock sharedObjects on the server so I can factor the function calls appropriately between a master...
    3. Need Help with Locking
      I need help with understanding about locking. I have my DSN created as Application Variable . I want to lock a transaction in one of the module to...
    4. DB2 locking UDF dll
      Meg wrote: Which version of db2 are you using? For v8, try set KEEP_FENCED to no (db2 update dbm cfg using KEEP_FENCED NO). This way, the fenced...
    5. locking my computer
      i run on xp home and there is supposed to be a 'lock your computer'option in the task manager - mine does not have one ---- can anyone help???
  3. #2

    Default Re: SQL Server Locking

    Check out <CFTRANSACTION> at [url]http://livedocs.macromedia.com/coldfusion/5.0/CFML_Reference/Tags103.htm#1104164[/url]
    jdeline Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139