Re: Updating a table and row locking.



I am using an Access database and the field is a Memo field. I do a
replace on apostrophes to avoid any SQL syntax issues and do an
"Update FieldName set XMLFieldName = 'XMLDOCVALUE' where ID = N"

I do an update on the table twice, the sql seen above is from the
second update. As mentioned in the first post to this message, I
wanted to simplify my XML parsing code so I divided the update
statement. The question remains: How do I release the locks on my
database once I'm done?


On Mar 28, 1:46 pm, "Stephen Howe" <stephenPOINThoweATtns-
globalPOINTcom> wrote:
Anyway, one of the problems with my solution is that the row gets
locked and I get errors when the second SQL statement is called. My
fix is a looped try catch block (I'm working in jscript here) that
keeps trying until the data goes in. This works, but it is kind of
slow. Any ideas on how to release the locks. CommitTrans() does not
do the job. Can I specify a very short timeout period when I
establish my connection (timeout for keeping the row locked)?

What database?
And how are puttuing the XML into the database?

Stephen Howe


.



Relevant Pages

  • Re: dbdebunk Quote of Week comment
    ... > a lot of really bad SQL programmers. ... But SQL does not have a pointer data type or the ... > being told to design a database. ... But why is little Cindy Lou Who employee ...
    (comp.databases.theory)
  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: dbdebunk Quote of Week comment
    ... > a lot of really bad SQL programmers. ... a surrogate key should support the primary key. ... But SQL does not have a pointer data type or the ... > being told to design a database. ...
    (comp.databases.theory)
  • Re: dbdebunk Quote of Week comment
    ... But SQL does not have a pointer data type or the ... More and more programmers who have absolutely no database training are ... But why is little Cindy Lou Who employee ...
    (comp.databases.theory)
  • Re: Just say no to threads [Was: Software architecture]
    ... they knew there was going to be a database in the app. ... Now my colleague just spent a couple/three weeks designing an SQL ... Turns out they have a flat file of sample information, ...
    (comp.object)