Ask a Question related to ASP Database, Design and Development.
-
Brian #1
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
-
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... -
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. -
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... -
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... -
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... -
John Beschler #2
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
but>-----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,is>obviously doesn't show anything. The problem I'm havingExecute.">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 Notit>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, butcreated>seems to still have the same issues. The databases>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
-
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
>
>
>>but>>-----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,>is>>obviously doesn't show anything. The problem I'm having>Execute.">>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>it>>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>created>>seems to still have the same issues. The databases>.>>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
-
John Beschler #4
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
but>-----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,("ADODB.Connection")>is now not working since a Microsoft patch.
>
><%
>Set marketingConn = Server.CreateObjectchecked>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-server>>but>>>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,>>is>>>obviously doesn't show anything. The problem I'm having>>>that this will lock up the current site on my webthe>>>until I restart the site. I also get a few errors inunexpectedly.">>>system event log such as Event ID 37, "Out of process
>>>application '/LM/W3SVC/1/Root' terminateda>>Execute.">>>or "The Remote Procedure Call Failed and Did Not>>>in the browser. The only help I've come across is that>.>>it>>>possible Microsoft Patch for RPC could have caused it.
>>>I've updated to MDAC 2.8 on a different web server, but>>created>>>seems to still have the same issues. The databases>>.>>>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
-
Brian #5
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
do>-----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 youconnection>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 directand>but>>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,>("ADODB.Connection")>>is now not working since a Microsoft patch.
>>
>><%
>>Set marketingConn = Server.CreateObject>checked>>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->>>>the ASP code on two different pages, one that workssample:>>>>the new one and they are completely similar, I've even
>>>>copied it over, but changed the paths. Here is ahaving>>>>
>>>><% 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'mbut>server>>>is
>>>>that this will lock up the current site on my web>the>>>>until I restart the site. I also get a few errors in>unexpectedly.">>>>system event log such as Event ID 37, "Out of process
>>>>application '/LM/W3SVC/1/Root' terminated>a>>>>or "The Remote Procedure Call Failed and Did Not
>>>Execute."
>>>>in the browser. The only help I've come across is that>>>>possible Microsoft Patch for RPC could have caused it.
>>>>I've updated to MDAC 2.8 on a different web server,>.>>.>>>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
-
Brian #6
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
out>-----Original Message-----
>Actually, I do use most of the fields, but I kept themscid=kb;EN->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]all>do>>US;248738
>>
>>
>>ALSO: It is a waste of resources to use SELECT * if you>>not need all the fields from the table. If yo do needbeen>connection>>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>>but>>>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,>>("ADODB.Connection")>>>is now not working since a Microsoft patch.
>>>
>>><%
>>>Set marketingConn = Server.CreateObject>>>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'teven>and>>checked>>>>>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->>>>>the ASP code on two different pages, one that works>>>>>the new one and they are completely similar, I'vefine,>sample:>>>>>copied it over, but changed the paths. Here is a>>>>>
>>>>><% Do While Not rsCat.EOF %>
>>>>> <!-- code here -->
>>>>><% rsCat.MoveNext
>>>>>Loop %>
>>>>>
>>>>>If I remove that part of the code the page worksthat>having>>>>but
>>>>>obviously doesn't show anything. The problem I'm>>server>>>>is
>>>>>that this will lock up the current site on my web>>the>>>>>until I restart the site. I also get a few errors in>>unexpectedly.">>>>>system event log such as Event ID 37, "Out of process
>>>>>application '/LM/W3SVC/1/Root' terminated>>>>>or "The Remote Procedure Call Failed and Did Not
>>>>Execute."
>>>>>in the browser. The only help I've come across isit.>>a>>>>>possible Microsoft Patch for RPC could have causedit>but>>>>>I've updated to MDAC 2.8 on a different web server,>>>>it
>>>>>seems to still have the same issues. The databases
>>>>created
>>>>>earlier and the ASP pages they use still work fine,>.>>.>>>>>seems to be anything I try to create now. Thanks in
>>>>>advance for any insight.
>>>>>.
>>>>>
>>>>.
>>>>
>>>.
>>>
>>
>Brian Guest



Reply With Quote

