ADO/Access Locking Site

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

  1. #1

    Default ADO/Access Locking Site

    I've run into this problem recently and I haven't been
    able to pin it on anything. I've been doing ADO
    connections to Access databases for small databases
    before, but now they aren't working. I've double-checked
    the ASP code on two different pages, one that works and
    the new one and they are completely similar, I've even
    copied it over, but changed the paths. Here is a sample:

    <% Do While Not rsCat.EOF %>
    <!-- code here -->
    <% rsCat.MoveNext
    Loop %>

    If I remove that part of the code the page works fine, but
    obviously doesn't show anything. The problem I'm having is
    that this will lock up the current site on my web server
    until I restart the site. I also get a few errors in the
    system event log such as Event ID 37, "Out of process
    application '/LM/W3SVC/1/Root' terminated unexpectedly."
    or "The Remote Procedure Call Failed and Did Not Execute."
    in the browser. The only help I've come across is that a
    possible Microsoft Patch for RPC could have caused it.
    I've updated to MDAC 2.8 on a different web server, but it
    seems to still have the same issues. The databases created
    earlier and the ASP pages they use still work fine, it
    seems to be anything I try to create now. Thanks in
    advance for any insight.
    Brian Guest

  2. Similar Questions and Discussions

    1. Access database locking
      Hi I am running a website off an access db with cf code. I have a couple of pages which can get ~500 users day and have noticed that since using...
    2. Access Record Locking
      Hi my access database has created another file called access record locking and I was just wondering why it has done this? Thanks.
    3. Access 2000 locking up in Windows XP
      I hope I can describe this problem. I have an Access 2000 with a SQL 2000 back end application. The following problem only seems to exist when...
    4. IS there any way to make DW MX close an access locking file???
      Everytime I open a dynamic page in DMX I notice the locking file turns on, but closing the file does not clear the locking file. Therefore I can't...
    5. Secure site access
      I have the Administrator account in Home Edition, and everything was working fine...then it wasn't. Suddenly I can do longer access internet sites...
  3. #2

    Default ADO/Access Locking Site

    Unfortunately, that is not enough info for someone to
    assist you. Could you post the rest of your code?

    Thanks,
    John


    >-----Original Message-----
    >I've run into this problem recently and I haven't been
    >able to pin it on anything. I've been doing ADO
    >connections to Access databases for small databases
    >before, but now they aren't working. I've double-checked
    >the ASP code on two different pages, one that works and
    >the new one and they are completely similar, I've even
    >copied it over, but changed the paths. Here is a sample:
    >
    ><% Do While Not rsCat.EOF %>
    > <!-- code here -->
    ><% rsCat.MoveNext
    >Loop %>
    >
    >If I remove that part of the code the page works fine,
    but
    >obviously doesn't show anything. The problem I'm having
    is
    >that this will lock up the current site on my web server
    >until I restart the site. I also get a few errors in the
    >system event log such as Event ID 37, "Out of process
    >application '/LM/W3SVC/1/Root' terminated unexpectedly."
    >or "The Remote Procedure Call Failed and Did Not
    Execute."
    >in the browser. The only help I've come across is that a
    >possible Microsoft Patch for RPC could have caused it.
    >I've updated to MDAC 2.8 on a different web server, but
    it
    >seems to still have the same issues. The databases
    created
    >earlier and the ASP pages they use still work fine, it
    >seems to be anything I try to create now. Thanks in
    >advance for any insight.
    >.
    >
    John Beschler Guest

  4. #3

    Default ADO/Access Locking Site

    Here is the ASP code. I've tried both a direct connection
    and a System DSN. It looks completely identical to my
    other code that works. Could it be a bad DB, or someone
    brought up possible badly-made code that used to work, but
    is now not working since a Microsoft patch.

    <%
    Set marketingConn = Server.CreateObject("ADODB.Connection")
    marketingConn.Open "Marketing"

    strSQL = "SELECT * FROM Files ORDER BY Date"
    Set rsStories = marketingConn.Execute(strSQL)

    <% Do While Not rsStories.EOF %>
    <a href="data/<%=rsStories("FileName")%>"><%
    =rsStories("ShortName")%></a>
    <% rsStories.MoveNext
    Loop

    rsStories.Close
    Set rsStories = Nothing
    marketingConn.Close
    Set marketingConn = Nothing %>



    >-----Original Message-----
    >Unfortunately, that is not enough info for someone to
    >assist you. Could you post the rest of your code?
    >
    >Thanks,
    >John
    >
    >
    >
    >>-----Original Message-----
    >>I've run into this problem recently and I haven't been
    >>able to pin it on anything. I've been doing ADO
    >>connections to Access databases for small databases
    >>before, but now they aren't working. I've double-checked
    >>the ASP code on two different pages, one that works and
    >>the new one and they are completely similar, I've even
    >>copied it over, but changed the paths. Here is a sample:
    >>
    >><% Do While Not rsCat.EOF %>
    >> <!-- code here -->
    >><% rsCat.MoveNext
    >>Loop %>
    >>
    >>If I remove that part of the code the page works fine,
    >but
    >>obviously doesn't show anything. The problem I'm having
    >is
    >>that this will lock up the current site on my web server
    >>until I restart the site. I also get a few errors in the
    >>system event log such as Event ID 37, "Out of process
    >>application '/LM/W3SVC/1/Root' terminated unexpectedly."
    >>or "The Remote Procedure Call Failed and Did Not
    >Execute."
    >>in the browser. The only help I've come across is that a
    >>possible Microsoft Patch for RPC could have caused it.
    >>I've updated to MDAC 2.8 on a different web server, but
    >it
    >>seems to still have the same issues. The databases
    >created
    >>earlier and the ASP pages they use still work fine, it
    >>seems to be anything I try to create now. Thanks in
    >>advance for any insight.
    >>.
    >>
    >.
    >
    Guest

  5. #4

    Default ADO/Access Locking Site

    DATE is a reserved word. If your field is really named
    Date then you should delimit it with square brackets.
    strSQL = "SELECT * FROM Files ORDER BY [Date]"

    See: [url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    US;248738


    ALSO: It is a waste of resources to use SELECT * if you do
    not need all the fields from the table. If yo do need all
    the fields it is safer to list each one by name in your
    SELECT statement.

    HTH,
    John




    >-----Original Message-----
    >Here is the ASP code. I've tried both a direct connection
    >and a System DSN. It looks completely identical to my
    >other code that works. Could it be a bad DB, or someone
    >brought up possible badly-made code that used to work,
    but
    >is now not working since a Microsoft patch.
    >
    ><%
    >Set marketingConn = Server.CreateObject
    ("ADODB.Connection")
    >marketingConn.Open "Marketing"
    >
    >strSQL = "SELECT * FROM Files ORDER BY Date"
    >Set rsStories = marketingConn.Execute(strSQL)
    >
    ><% Do While Not rsStories.EOF %>
    > <a href="data/<%=rsStories("FileName")%>"><%
    >=rsStories("ShortName")%></a>
    ><% rsStories.MoveNext
    >Loop
    >
    >rsStories.Close
    >Set rsStories = Nothing
    >marketingConn.Close
    >Set marketingConn = Nothing %>
    >
    >
    >
    >
    >>-----Original Message-----
    >>Unfortunately, that is not enough info for someone to
    >>assist you. Could you post the rest of your code?
    >>
    >>Thanks,
    >>John
    >>
    >>
    >>
    >>>-----Original Message-----
    >>>I've run into this problem recently and I haven't been
    >>>able to pin it on anything. I've been doing ADO
    >>>connections to Access databases for small databases
    >>>before, but now they aren't working. I've double-
    checked
    >>>the ASP code on two different pages, one that works and
    >>>the new one and they are completely similar, I've even
    >>>copied it over, but changed the paths. Here is a sample:
    >>>
    >>><% Do While Not rsCat.EOF %>
    >>> <!-- code here -->
    >>><% rsCat.MoveNext
    >>>Loop %>
    >>>
    >>>If I remove that part of the code the page works fine,
    >>but
    >>>obviously doesn't show anything. The problem I'm having
    >>is
    >>>that this will lock up the current site on my web
    server
    >>>until I restart the site. I also get a few errors in
    the
    >>>system event log such as Event ID 37, "Out of process
    >>>application '/LM/W3SVC/1/Root' terminated
    unexpectedly."
    >>>or "The Remote Procedure Call Failed and Did Not
    >>Execute."
    >>>in the browser. The only help I've come across is that
    a
    >>>possible Microsoft Patch for RPC could have caused it.
    >>>I've updated to MDAC 2.8 on a different web server, but
    >>it
    >>>seems to still have the same issues. The databases
    >>created
    >>>earlier and the ASP pages they use still work fine, it
    >>>seems to be anything I try to create now. Thanks in
    >>>advance for any insight.
    >>>.
    >>>
    >>.
    >>
    >.
    >
    John Beschler Guest

  6. #5

    Default ADO/Access Locking Site

    Actually, I do use most of the fields, but I kept them out
    to make it simple to show you. I don't think that date is
    doing it, since I've changed it to another field before
    and it still locked up the site. I'll try the brackets
    though, too. Thanks.

    Brian
    >-----Original Message-----
    >DATE is a reserved word. If your field is really named
    >Date then you should delimit it with square brackets.
    >strSQL = "SELECT * FROM Files ORDER BY [Date]"
    >
    >See: [url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    >US;248738
    >
    >
    >ALSO: It is a waste of resources to use SELECT * if you
    do
    >not need all the fields from the table. If yo do need all
    >the fields it is safer to list each one by name in your
    >SELECT statement.
    >
    >HTH,
    >John
    >
    >
    >
    >
    >
    >>-----Original Message-----
    >>Here is the ASP code. I've tried both a direct
    connection
    >>and a System DSN. It looks completely identical to my
    >>other code that works. Could it be a bad DB, or someone
    >>brought up possible badly-made code that used to work,
    >but
    >>is now not working since a Microsoft patch.
    >>
    >><%
    >>Set marketingConn = Server.CreateObject
    >("ADODB.Connection")
    >>marketingConn.Open "Marketing"
    >>
    >>strSQL = "SELECT * FROM Files ORDER BY Date"
    >>Set rsStories = marketingConn.Execute(strSQL)
    >>
    >><% Do While Not rsStories.EOF %>
    >> <a href="data/<%=rsStories("FileName")%>"><%
    >>=rsStories("ShortName")%></a>
    >><% rsStories.MoveNext
    >>Loop
    >>
    >>rsStories.Close
    >>Set rsStories = Nothing
    >>marketingConn.Close
    >>Set marketingConn = Nothing %>
    >>
    >>
    >>
    >>
    >>>-----Original Message-----
    >>>Unfortunately, that is not enough info for someone to
    >>>assist you. Could you post the rest of your code?
    >>>
    >>>Thanks,
    >>>John
    >>>
    >>>
    >>>
    >>>>-----Original Message-----
    >>>>I've run into this problem recently and I haven't been
    >>>>able to pin it on anything. I've been doing ADO
    >>>>connections to Access databases for small databases
    >>>>before, but now they aren't working. I've double-
    >checked
    >>>>the ASP code on two different pages, one that works
    and
    >>>>the new one and they are completely similar, I've even
    >>>>copied it over, but changed the paths. Here is a
    sample:
    >>>>
    >>>><% Do While Not rsCat.EOF %>
    >>>> <!-- code here -->
    >>>><% rsCat.MoveNext
    >>>>Loop %>
    >>>>
    >>>>If I remove that part of the code the page works fine,
    >>>but
    >>>>obviously doesn't show anything. The problem I'm
    having
    >>>is
    >>>>that this will lock up the current site on my web
    >server
    >>>>until I restart the site. I also get a few errors in
    >the
    >>>>system event log such as Event ID 37, "Out of process
    >>>>application '/LM/W3SVC/1/Root' terminated
    >unexpectedly."
    >>>>or "The Remote Procedure Call Failed and Did Not
    >>>Execute."
    >>>>in the browser. The only help I've come across is that
    >a
    >>>>possible Microsoft Patch for RPC could have caused it.
    >>>>I've updated to MDAC 2.8 on a different web server,
    but
    >>>it
    >>>>seems to still have the same issues. The databases
    >>>created
    >>>>earlier and the ASP pages they use still work fine, it
    >>>>seems to be anything I try to create now. Thanks in
    >>>>advance for any insight.
    >>>>.
    >>>>
    >>>.
    >>>
    >>.
    >>
    >.
    >
    Brian Guest

  7. #6

    Default ADO/Access Locking Site

    I figured it out. I'm not sure if it had anything to do
    with patches, but it turned out to be an empty recordset
    error, but I'm not 100% sure why it was happening. I
    figured out that it was getting a 3704 error, which meant
    the object was closed. I've figured out how to stop the
    system from locking up by (obviously, my fault) putting in
    error catching. Thanks for all of the help though.

    Brian
    >-----Original Message-----
    >Actually, I do use most of the fields, but I kept them
    out
    >to make it simple to show you. I don't think that date is
    >doing it, since I've changed it to another field before
    >and it still locked up the site. I'll try the brackets
    >though, too. Thanks.
    >
    >Brian
    >
    >>-----Original Message-----
    >>DATE is a reserved word. If your field is really named
    >>Date then you should delimit it with square brackets.
    >>strSQL = "SELECT * FROM Files ORDER BY [Date]"
    >>
    >>See: [url]http://support.microsoft.com/default.aspx?[/url]
    scid=kb;EN-
    >>US;248738
    >>
    >>
    >>ALSO: It is a waste of resources to use SELECT * if you
    >do
    >>not need all the fields from the table. If yo do need
    all
    >>the fields it is safer to list each one by name in your
    >>SELECT statement.
    >>
    >>HTH,
    >>John
    >>
    >>
    >>
    >>
    >>
    >>>-----Original Message-----
    >>>Here is the ASP code. I've tried both a direct
    >connection
    >>>and a System DSN. It looks completely identical to my
    >>>other code that works. Could it be a bad DB, or someone
    >>>brought up possible badly-made code that used to work,
    >>but
    >>>is now not working since a Microsoft patch.
    >>>
    >>><%
    >>>Set marketingConn = Server.CreateObject
    >>("ADODB.Connection")
    >>>marketingConn.Open "Marketing"
    >>>
    >>>strSQL = "SELECT * FROM Files ORDER BY Date"
    >>>Set rsStories = marketingConn.Execute(strSQL)
    >>>
    >>><% Do While Not rsStories.EOF %>
    >>> <a href="data/<%=rsStories("FileName")%>"><%
    >>>=rsStories("ShortName")%></a>
    >>><% rsStories.MoveNext
    >>>Loop
    >>>
    >>>rsStories.Close
    >>>Set rsStories = Nothing
    >>>marketingConn.Close
    >>>Set marketingConn = Nothing %>
    >>>
    >>>
    >>>
    >>>
    >>>>-----Original Message-----
    >>>>Unfortunately, that is not enough info for someone to
    >>>>assist you. Could you post the rest of your code?
    >>>>
    >>>>Thanks,
    >>>>John
    >>>>
    >>>>
    >>>>
    >>>>>-----Original Message-----
    >>>>>I've run into this problem recently and I haven't
    been
    >>>>>able to pin it on anything. I've been doing ADO
    >>>>>connections to Access databases for small databases
    >>>>>before, but now they aren't working. I've double-
    >>checked
    >>>>>the ASP code on two different pages, one that works
    >and
    >>>>>the new one and they are completely similar, I've
    even
    >>>>>copied it over, but changed the paths. Here is a
    >sample:
    >>>>>
    >>>>><% Do While Not rsCat.EOF %>
    >>>>> <!-- code here -->
    >>>>><% rsCat.MoveNext
    >>>>>Loop %>
    >>>>>
    >>>>>If I remove that part of the code the page works
    fine,
    >>>>but
    >>>>>obviously doesn't show anything. The problem I'm
    >having
    >>>>is
    >>>>>that this will lock up the current site on my web
    >>server
    >>>>>until I restart the site. I also get a few errors in
    >>the
    >>>>>system event log such as Event ID 37, "Out of process
    >>>>>application '/LM/W3SVC/1/Root' terminated
    >>unexpectedly."
    >>>>>or "The Remote Procedure Call Failed and Did Not
    >>>>Execute."
    >>>>>in the browser. The only help I've come across is
    that
    >>a
    >>>>>possible Microsoft Patch for RPC could have caused
    it.
    >>>>>I've updated to MDAC 2.8 on a different web server,
    >but
    >>>>it
    >>>>>seems to still have the same issues. The databases
    >>>>created
    >>>>>earlier and the ASP pages they use still work fine,
    it
    >>>>>seems to be anything I try to create now. Thanks in
    >>>>>advance for any insight.
    >>>>>.
    >>>>>
    >>>>.
    >>>>
    >>>.
    >>>
    >>.
    >>
    >.
    >
    Brian 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