SQL queries when Access is open

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

  1. #1

    Default SQL queries when Access is open

    My Authorware training piece sends and retrieves data
    through asp pages that are connected to an Access
    database. Three asp pages use SQL SELECT, INSERT and
    UPDATE statements. The data in each user record is
    small: about 25 two-digit numbers.

    The SQL queries fail when the Access database is open.
    The error message: "Microsoft JET Database Engine
    (0x80004005) Could not use; file already in use."

    It would be nice if a system administrator could view
    user records in the database while other people are using
    the AW training piece including sending SQL queries. Is
    Access unable to receive SQL queries while the database
    file is open? Is there a workaround?

    Thanks.
    Jim Bowman Guest

  2. Similar Questions and Discussions

    1. Queries slower with SQL Server than Access
      Hoping for better security and performance, I'm moving data from an Access database to SQL Server. However, our more query-intensive reports in CF...
    2. Simultaneous SQL queries to Access
      In evaluating asp and an Access database as a way to store user data from an Authorware training piece, I ran across this article: "For...
    3. Creating queries in Access (for ASP)
      Hi, So far I have been writing ASP and embedding my SQL in the ASP pages. But, I've heard advantages of creating queries inside the database...
    4. Translate Access queries to ASP
      Hi, I'm still confused about my queries, I want to do something is ASP that is easily done in Access. I'll post the Access queries below as a...
    5. using Access queries using ADOX
      Hello, I have the following code in an asp 3.0 page: Dim dbConn As adodb.Connection Dim cat As ADOX.Catalog Dim view As ADOX.view Set dbConn...
  3. #2

    Default Re: SQL queries when Access is open

    Jim Bowman wrote:
    > My Authorware training piece sends and retrieves data
    > through asp pages that are connected to an Access
    > database. Three asp pages use SQL SELECT, INSERT and
    > UPDATE statements. The data in each user record is
    > small: about 25 two-digit numbers.
    >
    > The SQL queries fail when the Access database is open.
    > The error message: "Microsoft JET Database Engine
    > (0x80004005) Could not use; file already in use."
    >
    > It would be nice if a system administrator could view
    > user records in the database while other people are using
    > the AW training piece including sending SQL queries. Is
    > Access unable to receive SQL queries while the database
    > file is open? Is there a workaround?
    >
    > Thanks.
    It's a NTFS permissions issue. See:
    [url]http://www.aspfaq.com/show.asp?id=2009[/url]
    [url]http://www.aspfaq.com/show.asp?id=2062[/url]


    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 [MVP] Guest

  4. #3

    Default Re: SQL queries when Access is open

    It can't be open while your asp pages are using it. You will need to create
    a web interface for the Administrator to view the records.

    Bob Lehmann

    "Jim Bowman" <anonymous@discussions.microsoft.com> wrote in message
    news:2c4a01c4286c$b690f9f0$a301280a@phx.gbl...
    > My Authorware training piece sends and retrieves data
    > through asp pages that are connected to an Access
    > database. Three asp pages use SQL SELECT, INSERT and
    > UPDATE statements. The data in each user record is
    > small: about 25 two-digit numbers.
    >
    > The SQL queries fail when the Access database is open.
    > The error message: "Microsoft JET Database Engine
    > (0x80004005) Could not use; file already in use."
    >
    > It would be nice if a system administrator could view
    > user records in the database while other people are using
    > the AW training piece including sending SQL queries. Is
    > Access unable to receive SQL queries while the database
    > file is open? Is there a workaround?
    >
    > Thanks.

    Bob Lehmann Guest

  5. #4

    Default Re: SQL queries when Access is open

    Yes it can. As long as permissions are set correctly, it is possible. I'm
    speaking from experience. I have tested asp pages that work with a database
    while having that database open in Access.

    Bob Barrows

    Bob Lehmann wrote:
    > It can't be open while your asp pages are using it. You will need to
    > create a web interface for the Administrator to view the records.
    >
    > Bob Lehmann
    >
    > "Jim Bowman" <anonymous@discussions.microsoft.com> wrote in message
    > news:2c4a01c4286c$b690f9f0$a301280a@phx.gbl...
    >> My Authorware training piece sends and retrieves data
    >> through asp pages that are connected to an Access
    >> database. Three asp pages use SQL SELECT, INSERT and
    >> UPDATE statements. The data in each user record is
    >> small: about 25 two-digit numbers.
    >>
    >> The SQL queries fail when the Access database is open.
    >> The error message: "Microsoft JET Database Engine
    >> (0x80004005) Could not use; file already in use."
    >>
    >> It would be nice if a system administrator could view
    >> user records in the database while other people are using
    >> the AW training piece including sending SQL queries. Is
    >> Access unable to receive SQL queries while the database
    >> file is open? Is there a workaround?
    >>
    >> Thanks.
    --
    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 [MVP] Guest

  6. #5

    Default Re: SQL queries when Access is open

    Interesting. I've not been able to do that.

    Are the permissions set differently than they normally would be for web use?

    Bob Lehmann

    "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:#W$xLBIKEHA.3728@TK2MSFTNGP12.phx.gbl...
    > Yes it can. As long as permissions are set correctly, it is possible. I'm
    > speaking from experience. I have tested asp pages that work with a
    database
    > while having that database open in Access.
    >
    > Bob Barrows
    >
    > Bob Lehmann wrote:
    > > It can't be open while your asp pages are using it. You will need to
    > > create a web interface for the Administrator to view the records.
    > >
    > > Bob Lehmann
    > >
    > > "Jim Bowman" <anonymous@discussions.microsoft.com> wrote in message
    > > news:2c4a01c4286c$b690f9f0$a301280a@phx.gbl...
    > >> My Authorware training piece sends and retrieves data
    > >> through asp pages that are connected to an Access
    > >> database. Three asp pages use SQL SELECT, INSERT and
    > >> UPDATE statements. The data in each user record is
    > >> small: about 25 two-digit numbers.
    > >>
    > >> The SQL queries fail when the Access database is open.
    > >> The error message: "Microsoft JET Database Engine
    > >> (0x80004005) Could not use; file already in use."
    > >>
    > >> It would be nice if a system administrator could view
    > >> user records in the database while other people are using
    > >> the AW training piece including sending SQL queries. Is
    > >> Access unable to receive SQL queries while the database
    > >> file is open? Is there a workaround?
    > >>
    > >> Thanks.
    >
    > --
    > 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 Lehmann Guest

  7. #6

    Default Re: SQL queries when Access is open

    Nope - everyone who opens the database has Change permissions for the folder
    containing the database. As long as that's the case, I never have problems.

    Bob Barrows
    Bob Lehmann wrote:
    > Interesting. I've not been able to do that.
    >
    > Are the permissions set differently than they normally would be for
    > web use?
    >
    > Bob Lehmann
    >
    > "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    > news:#W$xLBIKEHA.3728@TK2MSFTNGP12.phx.gbl...
    >> Yes it can. As long as permissions are set correctly, it is
    >> possible. I'm speaking from experience. I have tested asp pages that
    >> work with a database while having that database open in Access.
    >>
    >> Bob Barrows
    >>
    >> Bob Lehmann wrote:
    >>> It can't be open while your asp pages are using it. You will need to
    >>> create a web interface for the Administrator to view the records.
    >>>
    >>> Bob Lehmann
    >>>
    >>> "Jim Bowman" <anonymous@discussions.microsoft.com> wrote in message
    >>> news:2c4a01c4286c$b690f9f0$a301280a@phx.gbl...
    >>>> My Authorware training piece sends and retrieves data
    >>>> through asp pages that are connected to an Access
    >>>> database. Three asp pages use SQL SELECT, INSERT and
    >>>> UPDATE statements. The data in each user record is
    >>>> small: about 25 two-digit numbers.
    >>>>
    >>>> The SQL queries fail when the Access database is open.
    >>>> The error message: "Microsoft JET Database Engine
    >>>> (0x80004005) Could not use; file already in use."
    >>>>
    >>>> It would be nice if a system administrator could view
    >>>> user records in the database while other people are using
    >>>> the AW training piece including sending SQL queries. Is
    >>>> Access unable to receive SQL queries while the database
    >>>> file is open? Is there a workaround?
    >>>>
    >>>> Thanks.
    >>
    >> --
    >> 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.
    --
    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 [MVP] Guest

  8. #7

    Default Re: SQL queries when Access is open

    If it's a new database that you just manually created in Access, you must
    close it one time prior to being able to access it via ASP or any other
    means, whether your in "design view" or not. Aside from that, it shouldn't
    be an issue!

    Ray at work

    "Bob Lehmann" <none> wrote in message
    news:ubwH5cIKEHA.3304@TK2MSFTNGP10.phx.gbl...
    > Interesting. I've not been able to do that.
    >
    > Are the permissions set differently than they normally would be for web
    use?
    >
    > Bob Lehmann

    Ray at Guest

  9. #8

    Default Re: SQL queries when Access is open

    I gave Change permissions to one more user in the folder
    containing the database. It works! I can now send SQL
    queries while the db is open.

    Thanks for the advice.

    Jim
    >-----Original Message-----
    >Nope - everyone who opens the database has Change
    permissions for the folder
    >containing the database. As long as that's the case, I
    never have problems.
    >
    >Bob Barrows
    >Bob Lehmann wrote:
    >> Interesting. I've not been able to do that.
    >>
    >> Are the permissions set differently than they normally
    would be for
    >> web use?
    >>
    >> Bob Lehmann
    >>
    >> "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote
    in message
    >> news:#W$xLBIKEHA.3728@TK2MSFTNGP12.phx.gbl...
    >>> Yes it can. As long as permissions are set correctly,
    it is
    >>> possible. I'm speaking from experience. I have tested
    asp pages that
    >>> work with a database while having that database open
    in Access.
    >>>
    >>> Bob Barrows
    >>>
    >>> Bob Lehmann wrote:
    >>>> It can't be open while your asp pages are using it.
    You will need to
    >>>> create a web interface for the Administrator to view
    the records.
    >>>>
    >>>> Bob Lehmann
    >>>>
    >>>> "Jim Bowman" <anonymous@discussions.microsoft.com>
    wrote in message
    >>>> news:2c4a01c4286c$b690f9f0$a301280a@phx.gbl...
    >>>>> My Authorware training piece sends and retrieves
    data
    >>>>> through asp pages that are connected to an Access
    >>>>> database. Three asp pages use SQL SELECT, INSERT
    and
    >>>>> UPDATE statements. The data in each user record is
    >>>>> small: about 25 two-digit numbers.
    >>>>>
    >>>>> The SQL queries fail when the Access database is
    open.
    >>>>> The error message: "Microsoft JET Database Engine
    >>>>> (0x80004005) Could not use; file already in use."
    >>>>>
    >>>>> It would be nice if a system administrator could
    view
    >>>>> user records in the database while other people are
    using
    >>>>> the AW training piece including sending SQL
    queries. Is
    >>>>> Access unable to receive SQL queries while the
    database
    >>>>> file is open? Is there a workaround?
    >>>>>
    >>>>> Thanks.
    >>>
    >>> --
    >>> 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.
    >
    >--
    >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.
    >
    >
    >.
    >
    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