access to access db stop

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

  1. #1

    Default access to access db stop

    I've a server (W2K Server SP4) where my sites can access to Access db.
    Sometimes, starts this error:

    Microsoft JET Database Engine error '80004005'

    Unspecified error

    /news.asp, line 65



    If I restart the server all goes ok.



    What can be?



    thanks




    Trapulo Guest

  2. Similar Questions and Discussions

    1. Web Service + Anon Access, but getting 401 Access Denied Error
      I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous...
    2. Access 2002 PDFWriter VBA Code w/WinXP does not work like Access 2000
      I am trying to print an Access 2002 report (Windows XP OS) as a PDF. I had success with Access 2000 in a Windows 2000 environment, but as soon as I...
    3. Access Violation when using Visual Interdev to access Oracle
      I am running Windows 200 Pro, IIS 5.0 and trying to connect to an Oracle 8.1 database. Prior to applying a security patch to W2k, the ASP...
    4. ASP pages that use Access stop working.
      http://www.aspfaq.com/5003 Ray at work "Tony" <scorn@dsl-mud.org> wrote in message news:10f201c38c4a$3272f8d0$a001280a@phx.gbl...
    5. Access denied when creating Access application object
      In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the...
  3. #2

    Default Re: access to access db stop

    What's your code?
    What does your query look like?
    What does your connection string look like?

    Ray at work

    "Trapulo" <nonscrivermi@qui.it> wrote in message
    news:ud4ww%23jmDHA.2772@TK2MSFTNGP10.phx.gbl...
    > I've a server (W2K Server SP4) where my sites can access to Access db.
    > Sometimes, starts this error:
    >
    > Microsoft JET Database Engine error '80004005'
    >
    > Unspecified error
    >
    > /news.asp, line 65
    >
    >
    >
    > If I restart the server all goes ok.
    >
    >
    >
    > What can be?
    >
    >
    >
    > thanks
    >
    >
    >
    >

    Ray at Guest

  4. #3

    Default Re: access to access db stop


    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:Og$c6KkmDHA.2616@TK2MSFTNGP11.phx.gbl...
    > What's your code?
    > What does your query look like?
    sql="select * from news where lingua like 1 order by id desc
    > What does your connection string look like?
    >
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
    Server.MapPath("Database/dati.mdb")
    Set RS=conn.Execute(sql)

    Error on conn.open

    thanks


    Trapulo Guest

  5. #4

    Default Re: access to access db stop

    Trapulo wrote:
    > I've a server (W2K Server SP4) where my sites can access to Access db.
    > Sometimes, starts this error:
    >
    > Microsoft JET Database Engine error '80004005'
    >
    > Unspecified error
    >
    > /news.asp, line 65
    >
    >
    >
    > If I restart the server all goes ok.
    >
    If you Repair/Compact the database, permissions for the new database
    resulting from the repair/compact process may not be assigned. Remember,
    IUSR needs Change permissions for the database file

    HTH,
    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  6. #5

    Default Re: access to access db stop

    You could try doing "select * from [news] where [lingua]=1 order by [id]
    desc"

    Also, with your database in that location, anyone in the world can download
    it. Read here.
    [url]http://www.aspfaq.com/2454[/url]

    Also, you may want to read this and consider it after you get things worked
    out.
    [url]http://www.aspfaq.com/2096[/url]

    Ray at work

    "Trapulo" <nonscrivermi@qui.it> wrote in message
    news:eYC%23HNkmDHA.3732@tk2msftngp13.phx.gbl...
    >
    > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    > news:Og$c6KkmDHA.2616@TK2MSFTNGP11.phx.gbl...
    > > What's your code?
    > > What does your query look like?
    >
    > sql="select * from news where lingua like 1 order by id desc
    >
    > > What does your connection string look like?
    > >
    >
    > Set conn = Server.CreateObject("ADODB.Connection")
    > conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
    > Server.MapPath("Database/dati.mdb")
    > Set RS=conn.Execute(sql)
    >
    > Error on conn.open
    >
    > thanks
    >
    >

    Ray at Guest

  7. #6

    Default Re: access to access db stop

    "Trapulo" <nonscrivermi@qui.it> wrote in message
    news:ud4ww%23jmDHA.2772@TK2MSFTNGP10.phx.gbl...
    > I've a server (W2K Server SP4) where my sites can access to Access db.
    > Sometimes, starts this error:
    >
    > Microsoft JET Database Engine error '80004005'
    > Unspecified error
    > /news.asp, line 65
    >
    > If I restart the server all goes ok.
    > What can be?
    [url]http://www.aspfaq.com/show.asp?id=2009[/url]

    --
    Tom Kaminski IIS MVP
    [url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running IIS
    [url]http://mvp.support.microsoft.com/[/url]
    [url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]



    Tom Kaminski [MVP] Guest

  8. #7

    Default Re: access to access db stop


    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:eNMvGSkmDHA.988@TK2MSFTNGP10.phx.gbl...
    > You could try doing "select * from [news] where [lingua]=1 order by [id]
    > desc"
    >
    I'll try, but the problem is not with sql statement. I have the error
    opening the connection! And not always.. only after some days the server is
    running...
    > Also, with your database in that location, anyone in the world can
    download
    > it. Read here.
    > [url]http://www.aspfaq.com/2454[/url]
    no, I have locked reading attribute in IIS
    >
    > Also, you may want to read this and consider it after you get things
    worked
    > out.
    > [url]http://www.aspfaq.com/2096[/url]
    >
    Sorry, I think this is not realted to my problem...


    thanks


    Trapulo Guest

  9. #8

    Default Re: access to access db stop


    "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:eN4R%23SkmDHA.3688@TK2MSFTNGP11.phx.gbl...
    > Trapulo wrote:
    > >
    > > If I restart the server all goes ok.
    > >
    >
    > If you Repair/Compact the database, permissions for the new database
    > resulting from the repair/compact process may not be assigned. Remember,
    > IUSR needs Change permissions for the database file
    >
    Interesting point. However I have not opened the db from access, neither
    made a repar/compat, so I think this is not the problem (however you
    remainded me to try with a reapair...).
    The IUSR has change on all directory....

    thanks



    Trapulo Guest

  10. #9

    Default Re: access to access db stop


    "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
    news:bnbjbk$2e646@kcweb01.netnews.att.com...
    > "Trapulo" <nonscrivermi@qui.it> wrote in message
    > news:ud4ww%23jmDHA.2772@TK2MSFTNGP10.phx.gbl...
    > > I've a server (W2K Server SP4) where my sites can access to Access db.
    > > Sometimes, starts this error:
    > >
    > > Microsoft JET Database Engine error '80004005'
    > > Unspecified error
    > > /news.asp, line 65
    > >
    > > If I restart the server all goes ok.
    > > What can be?
    >
    > [url]http://www.aspfaq.com/show.asp?id=2009[/url]
    >
    > --
    Thank you, but I didn't find any solution, because my problem is not "fix".
    The application works well, but after some days it stops...


    Trapulo Guest

  11. #10

    Default Re: access to access db stop


    "Trapulo" <nonscrivermi@qui.it> wrote in message
    news:emEU78kmDHA.1408@TK2MSFTNGP11.phx.gbl...
    > > out.
    > > [url]http://www.aspfaq.com/2096[/url]
    > >
    >
    > Sorry, I think this is not realted to my problem...
    I don't think so either. I was just suggesting reading it after your
    problem is solved.

    Try [re]installing the latest version of MDAC and/or run a compact/repair on
    the database.

    Ray at work


    Ray at Guest

  12. #11

    Default Re: access to access db stop

    Hi Trapulo,

    Thank you for posting to the MSDN Managed newsgroups. We are acknowledging
    your post and you should receive response from the community within 2
    business days of your post.

    If you have any concerns, please feel free to let us know.

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    Get Secure! ¨C [url]www.microsoft.com/security[/url]
    This posting is provided "as is" with no warranties and confers no rights.

    Jacob Yang [MSFT] Guest

  13. #12

    Default Re: access to access db stop

    Hello Trapulo,

    With JET engine, we only can create less than 64 connections to the
    database. You may check if there are too many connections when the error
    occurred, and if you call conn.Close after you open it every time. After
    the problem occurr, you may replace it with a new blank database, and test
    again to see if the appliaction can open it.


    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)



    MSFT Guest

  14. #13

    Default Re: access to access db stop


    "MSFT" <lukezhan@online.microsoft.com> wrote in message
    news:L$$PMEDnDHA.724@cpmsftngxa06.phx.gbl...
    > Hello Trapulo,
    >
    > With JET engine, we only can create less than 64 connections to the
    > database. You may check if there are too many connections when the error
    > occurred,
    Now I've the error (4 days from the last time).
    How can I check this? However performance monitor for this site reports only
    17 "total isapi extension request"...
    >and if you call conn.Close after you open it every time.
    yes I do

    After
    > the problem occurr, you may replace it with a new blank database, and test
    > again to see if the appliaction can open it.
    >
    I've tried to download the db, open with access, make a compact and repair,
    upload over the old, and the application still not running with

    Microsoft JET Database Engine error '80004005'

    Unspecified error



    Regards,




    Trapulo Guest

  15. #14

    Default Re: access to access db stop


    "MSFT" <lukezhan@online.microsoft.com> wrote in message
    news:L$$PMEDnDHA.724@cpmsftngxa06.phx.gbl...
    > Hello Trapulo,
    >
    > With JET engine, we only can create less than 64 connections to the
    > database. You may check if there are too many connections when the error
    > occurred, and if you call conn.Close after you open it every time. After
    > the problem occurr, you may replace it with a new blank database, and test
    > again to see if the appliaction can open it.
    >
    I verified the problem is with ALL Access db on this server!
    So I'm sure this problem is not db-related, but jet-related.... :(



    Trapulo Guest

  16. #15

    Default Re: access to access db stop

    When the error occurred, you may check the .ldb file in the same folder as
    .mdb, to see if there are too many user open the database at same time.
    Anyway, Access is just a desktop database, and may not be suitable for ASP
    server side database. You may consider SQL server, or Even MSDE instead.

    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT Guest

  17. #16

    Default Re: access to access db stop


    "MSFT" <lukezhan@online.microsoft.com> wrote in message
    news:5HPpcGgnDHA.2828@cpmsftngxa06.phx.gbl...
    > When the error occurred, you may check the .ldb file in the same folder as
    > mdb, to see if there are too many user open the database at same time.
    When you open mdb from IIS there is not the ldb file
    > Anyway, Access is just a desktop database, and may not be suitable for ASP
    > server side database. You may consider SQL server, or Even MSDE instead.
    I use SQL server. This site is hosted, and there are no more 2 users/week
    accessing it, so this is not a performance problem!

    However I resolved the problem. It was a strange behavior of IWAM user, with
    a local profile. No configuration error, no performance problem, no
    database-related problem. A bug of system installer, or a strange behavior
    of IIS.




    Trapulo Guest

  18. #17

    Default Re: access to access db stop

    Trapulo wrote:
    > "MSFT" <lukezhan@online.microsoft.com> wrote in message
    > news:5HPpcGgnDHA.2828@cpmsftngxa06.phx.gbl...
    >> When the error occurred, you may check the .ldb file in the same
    >> folder as mdb, to see if there are too many user open the database
    >> at same time.
    >
    > When you open mdb from IIS there is not the ldb file
    There should be. The fact that there isn't means that the account that IIS
    is using to connect to the database does not have sufficient rights for the
    folder containing the database. You need to grant Change permissions on the
    folder to both the IUSR and IWAM accounts.

    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows Guest

  19. #18

    Default Re: access to access db stop


    "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:%23NnP2qlnDHA.2188@TK2MSFTNGP11.phx.gbl...
    > Trapulo wrote:
    > > "MSFT" <lukezhan@online.microsoft.com> wrote in message
    > > news:5HPpcGgnDHA.2828@cpmsftngxa06.phx.gbl...
    > >> When the error occurred, you may check the .ldb file in the same
    > >> folder as mdb, to see if there are too many user open the database
    > >> at same time.
    > >
    > > When you open mdb from IIS there is not the ldb file
    >
    > There should be. The fact that there isn't means that the account that IIS
    > is using to connect to the database does not have sufficient rights for
    the
    > folder containing the database. You need to grant Change permissions on
    the
    > folder to both the IUSR and IWAM accounts.
    I know, but if I have a wrong setting the application doesn't start. On my
    server, it satrtst and then stops random.

    However, as I said,I resolved and the problem was not here. But I don't
    understand why my W2K and IIS IWAM user was running in that way.

    bye




    Trapulo 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