Results 1 to 12 of 12

Thread: Having a problem with database search

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2005
    Posts
    53

    Resolved Having a problem with database search

    I put in a search word through the web page and click search and get this error.

    Microsoft OLE DB Provider for ODBC Drivers error '80004005'

    [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.

    /addresssearch_db/NPANXX_Ownership/Utilized_NPANXX_Ownership Search Results.asp, line 23

    Can anyone specify what the error is? Does it have to do with the code on my asp page or is it have to do with something with connectivity to my database?
    Last edited by noycwild; Dec 16th, 2005 at 03:55 PM.

  2. #2
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Up State NY
    Posts
    525

    Re: Having a problem with database search

    Do you have the database open while trying to access it?
    Access can remain open but the table its self needs to be closed.

    BTDT. Drove me nuts for a while

  3. #3
    Lively Member johnrswanton's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    84

    Re: Having a problem with database search

    post ur code n il have a look at it 4u
    ***********
    "why do things that are suspose to bad for us taste so good, whats ur addiction"
    Kanye West
    **********

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2005
    Posts
    53

    Re: Having a problem with database search

    If IsObject(Session("DB_conn")) Then
    Set conn = Session("DB_conn")
    Else
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.open "DB","",""
    Set Session("DB_conn") = conn
    End If
    Last edited by noycwild; Dec 15th, 2005 at 09:31 AM.

  5. #5
    Member
    Join Date
    Dec 2005
    Posts
    63

    Re: Having a problem with database search

    I'd bet money that juliemac nailed the issue on the head.

  6. #6

    Thread Starter
    Member
    Join Date
    Jan 2005
    Posts
    53

    Re: Having a problem with database search

    Quote Originally Posted by MarkDorf
    I'd bet money that juliemac nailed the issue on the head.
    I checked and the table and database is not open on any computer or server. Any other ideas? Could it be the web hosts side and not mine?
    Last edited by noycwild; Dec 13th, 2005 at 02:41 PM.

  7. #7

    Thread Starter
    Member
    Join Date
    Jan 2005
    Posts
    53

    Re: Having a problem with database search

    /bump still having problems, i'm still waiting on a reply from my web host...the only thing i can think of because i looked up on microsoft.com and 3 causes are web host side and 1 cause is what you guys said before about the table or db being open and they are not. Any suggestions thoughts? Thanks

  8. #8
    Lively Member johnrswanton's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    84

    Re: Having a problem with database search

    try
    conn.close
    to close database after search
    after 'wend'
    Last edited by johnrswanton; Dec 15th, 2005 at 06:17 AM.
    ***********
    "why do things that are suspose to bad for us taste so good, whats ur addiction"
    Kanye West
    **********

  9. #9

    Thread Starter
    Member
    Join Date
    Jan 2005
    Posts
    53

    Re: Having a problem with database search

    Quote Originally Posted by johnrswanton
    try
    conn.close
    to close database after search
    after 'wend'
    I did try this, still didn't work.
    Great idea! This would be useful, but it would only work if the database was being opened in the first place. The thing is it was working for a long time and all of a sudden it stopped working and gave me the error you see above. Still waiting on the web host to respond. Thanks for the input.
    Last edited by noycwild; Dec 15th, 2005 at 10:06 AM.

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Having a problem with database search

    Are there any .LDB files in the same directory as the MDB database?

  11. #11

    Thread Starter
    Member
    Join Date
    Jan 2005
    Posts
    53

    Re: Having a problem with database search

    Quote Originally Posted by mendhak
    Are there any .LDB files in the same directory as the MDB database?
    I checked and no there is not any .LDB files. The database is not opened and none of the tables in the database are open.

  12. #12

    Thread Starter
    Member
    Join Date
    Jan 2005
    Posts
    53

    Re: Having a problem with database search

    Thanks for the help....it did end up being the webhost side making the problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width