connection.execute = asynchronous process ??

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default connection.execute = asynchronous process ??

    Hi,


    I'm using an access database and found following problem :

    I have a table X with 2 records : record 1 & record 2. I execute following
    procedure with 2 steps :
    1. The procedure deletes records 1 : connection.execute "delete from X
    record 1"
    2. The procedure adds record 1 again using the recordset object.

    Result : nothing happens !
    I have the feeling that the "delete" statement is executed AFTER the "add
    record" statement. Or the "delete" statement did not finish before the
    start of the "add record" statement (= asyncrhonous processing).

    Can somebody explain me this behavior ?
    I have this problem only when using a MS Access database and not with an MS
    SQL database.

    Jill


    Jill Graham Guest

  2. Similar Questions and Discussions

    1. CFFILE upload error - The process cannot access the filebecause it is being used by another process
      I get this error intermitently when trying to upload a file. <cffile action='upload' ... To make sure there was nothing wrong with the file, i...
    2. #37998 [Asn->Fbk]: Parent process lost MySQLi connection after child process gone
      ID: 37998 Updated by: tony2001@php.net Reported By: dbs at is dot ua -Status: Assigned +Status: ...
    3. Win32::Process, SetProcessAffinityMask for an existing process =perl crash
      Hi! Was planning to use Win32::Process to set the ProcessAffinityMask of some processes but this lead to pure and simple crash of perl.exe. ...
    4. automatically execute a batch process
      you can do it with applescript, if you have gui scripting (aka ui scripting) going. some code: with timeout of 1200 seconds tell application...
    5. Can a WebService execute a LONG process?
      I need to expose a WebService that will take anywhere from two to six hours to execute. A client must be able to connect to the WebService, tell...
  3. #2

    Default connection.execute = asynchronous process ??

    Hi,


    I'm using an access database and found following problem :

    I have a table X with 2 records : record 1 & record 2. I execute following
    procedure with 2 steps :
    1. The procedure deletes records 1 : connection.execute "delete from X
    record 1"
    2. The procedure adds record 1 again using the recordset object.

    Result : nothing happens !
    I have the feeling that the "delete" statement is executed AFTER the "add
    record" statement. Or the "delete" statement did not finish before the
    start of the "add record" statement (= asyncrhonous processing).

    Can somebody explain me this behavior ?
    I have this problem only when using a MS Access database and not with an MS
    SQL database.

    Jill


    Jill Graham Guest

  4. #3

    Default Re: connection.execute = asynchronous process ??

    Can you show your code?

    Ray at work

    "Jill Graham" <jills_graham@yahoo.com.au> wrote in message
    news:ew$qqGciDHA.4012@tk2msftngp13.phx.gbl...
    > Hi,
    >
    >
    > I'm using an access database and found following problem :
    >
    > I have a table X with 2 records : record 1 & record 2. I execute
    following
    > procedure with 2 steps :
    > 1. The procedure deletes records 1 : connection.execute "delete from X
    > record 1"
    > 2. The procedure adds record 1 again using the recordset object.
    >
    > Result : nothing happens !
    > I have the feeling that the "delete" statement is executed AFTER the "add
    > record" statement. Or the "delete" statement did not finish before the
    > start of the "add record" statement (= asyncrhonous processing).
    >
    > Can somebody explain me this behavior ?
    > I have this problem only when using a MS Access database and not with an
    MS
    > SQL database.
    >
    > Jill
    >
    >

    Ray at Guest

  5. #4

    Default Re: connection.execute = asynchronous process ??

    On Fri, 3 Oct 2003 17:15:36 +0200, "Jill Graham"
    <jills_graham@yahoo.com.au> wrote:
    >Hi,
    >
    >
    >I'm using an access database and found following problem :
    >
    >I have a table X with 2 records : record 1 & record 2. I execute following
    >procedure with 2 steps :
    >1. The procedure deletes records 1 : connection.execute "delete from X
    >record 1"
    >2. The procedure adds record 1 again using the recordset object.
    >
    >Result : nothing happens !
    >I have the feeling that the "delete" statement is executed AFTER the "add
    >record" statement. Or the "delete" statement did not finish before the
    >start of the "add record" statement (= asyncrhonous processing).
    >
    >Can somebody explain me this behavior ?
    >I have this problem only when using a MS Access database and not with an MS
    >SQL database.
    >
    >Jill
    >
    I think your going to have to explain this a little better. You say
    you use Access, but also refer to a procedure. Is the Procedure
    something in ASP?

    Step 1: conn.execute "DELETE FROM X Where ID = 1"
    Step 2: conn.execute "INSERT INTO X (a,b,c) VALUES (1,2,3)"

    This kind of thing should work. The normal action of the connection
    object is NOT asynchronous, so I doubt that is your problem.

    When you say nothing happens, does the first record get deleted? Does
    the new record not get added?


    Dan Brussee Guest

  6. #5

    Default Re: connection.execute = asynchronous process ??

    Show your code. The delete statement you list is not valid and you don't
    show what your add record code looks like.

    --
    Mark Schupp
    Head of Development
    Integrity eLearning
    [url]www.ielearning.com[/url]


    "Jill Graham" <jills_graham@yahoo.com.au> wrote in message
    news:edO2dGciDHA.1048@TK2MSFTNGP11.phx.gbl...
    > Hi,
    >
    >
    > I'm using an access database and found following problem :
    >
    > I have a table X with 2 records : record 1 & record 2. I execute
    following
    > procedure with 2 steps :
    > 1. The procedure deletes records 1 : connection.execute "delete from X
    > record 1"
    > 2. The procedure adds record 1 again using the recordset object.
    >
    > Result : nothing happens !
    > I have the feeling that the "delete" statement is executed AFTER the "add
    > record" statement. Or the "delete" statement did not finish before the
    > start of the "add record" statement (= asyncrhonous processing).
    >
    > Can somebody explain me this behavior ?
    > I have this problem only when using a MS Access database and not with an
    MS
    > SQL database.
    >
    > Jill
    >
    >

    Mark Schupp Guest

  7. #6

    Default Re: connection.execute = asynchronous process ??

    Hi Dan,

    Correct, this is a procedure in ASP

    Table X has two records : ID = 1 and ID = 2

    The procedure is as follows :
    Step 1: conn.execute "DELETE FROM X Where ID = 1"
    Step 2: rs.open "table X", <options>
    rs.addNew
    rs("ID") = 1
    rs.update
    rs.close

    Result of the procedure : the record is deleted (step 1) but step 2 has no effect.

    When I replace step 2 with following statement : conn.execute "INSERT INTO X (ID) VALUES (1)", then everything works fine.

    Why doesn't the recordset work ?



    "Dan Brussee" <dbrussee@NOSPAMnc.rr.com> wrote in message news:4h8rnv03hpvc5rjc4jfus49gifcmms43q3@4ax.com...
    > On Fri, 3 Oct 2003 17:15:36 +0200, "Jill Graham"
    > <jills_graham@yahoo.com.au> wrote:
    >
    > >Hi,
    > >
    > >
    > >I'm using an access database and found following problem :
    > >
    > >I have a table X with 2 records : record 1 & record 2. I execute following
    > >procedure with 2 steps :
    > >1. The procedure deletes records 1 : connection.execute "delete from X
    > >record 1"
    > >2. The procedure adds record 1 again using the recordset object.
    > >
    > >Result : nothing happens !
    > >I have the feeling that the "delete" statement is executed AFTER the "add
    > >record" statement. Or the "delete" statement did not finish before the
    > >start of the "add record" statement (= asyncrhonous processing).
    > >
    > >Can somebody explain me this behavior ?
    > >I have this problem only when using a MS Access database and not with an MS
    > >SQL database.
    > >
    > >Jill
    > >
    >
    > I think your going to have to explain this a little better. You say
    > you use Access, but also refer to a procedure. Is the Procedure
    > something in ASP?
    >
    > Step 1: conn.execute "DELETE FROM X Where ID = 1"
    > Step 2: conn.execute "INSERT INTO X (a,b,c) VALUES (1,2,3)"
    >
    > This kind of thing should work. The normal action of the connection
    > object is NOT asynchronous, so I doubt that is your problem.
    >
    > When you say nothing happens, does the first record get deleted? Does
    > the new record not get added?
    >
    >
    Jill Graham Guest

  8. #7

    Default Re: connection.execute = asynchronous process ??

    Is there an On Error Resume Next in your code? If not, what does your real
    code look like?

    Ray at work

    "Jill Graham" <jills_Graham@yahoo.au.com> wrote in message
    news:eSOJk7ciDHA.3204@TK2MSFTNGP11.phx.gbl...
    Hi Dan,
    Correct, this is a procedure in ASP
    Table X has two records : ID = 1 and ID = 2
    The procedure is as follows :
    Step 1: conn.execute "DELETE FROM X Where ID = 1"
    Step 2: rs.open "table X", <options>
    rs.addNew
    rs("ID") = 1
    rs.update
    rs.close
    Result of the procedure : the record is deleted (step 1) but step 2 has no
    effect.
    When I replace step 2 with following statement : conn.execute "INSERT INTO X
    (ID) VALUES (1)", then everything works fine.
    Why doesn't the recordset work ?


    Ray at 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