SQL 2005 sp_attach_db fails with OS Error 5 Access is denied

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have a problem that seems to be similar to the issue fixed in MSKB
article 922804 (http://support.microsoft.com/kb/922804)
We are an ISV and our application uses a separate reports database fro
each user. When a user logs in, if they do not have a reports DB, we
create it. When they log out we detach their reports DB. When they
log back in we reattach their reports DB.
Normally this works fine. We have never had a problem with it,
although most of our customers are still running on SQL Server 2000.
We have one large customer who is running two instances of SQL Server
2005 on the same machine. These instances are identical as far as I
can tell. One of these instances is used for a Training environment
for our application. The other is used as a testing environment for
our application.
Until last Friday, both instances of SQL Server 2005 were working
flawlessly. Friday afternoon one of the instances began giving us the
following error when trying to attach an existing reports database:

Unable to open the physical file
"E:\MSSQL\Data\Agvance\Agvrep\rephss2.mdf". Operating System error 5:
"(Access is denied")

The other instance of SQL Server 2005 continues to work with no
problem.

MSKB article 922804 addresses network shares, however both of our
databases (and both of the SQL Server instances are on the same
"physical drive" (E:\).
This customer is running in a SAN environment. I don't know if this
has any impact.

Does anyone have any ideas?
Thanks,
Todd Erickson

.



Relevant Pages

  • SQL 2005 sp_attachdb fails with OS Error 5 Access is denied
    ... I have a problem that seems to be similar to the issue fixed in MSKB ... We are an ISV and our application uses a separate reports database fro ... We have one large customer who is running two instances of SQL Server ... One of these instances is used for a Training environment ...
    (microsoft.public.sqlserver.security)
  • Re: SQL 2005 sp_attach_db fails with OS Error 5 Access is denied
    ... Adding Everyone as a user to the MDF and LDF and giving full control ... We are an ISV and our application uses a separate reports database fro ... We have one large customer who is running two instances of SQL Server ... One of these instances is used for a Training environment ...
    (microsoft.public.sqlserver)
  • Re: Future of ADPs
    ... SQL Server 2005 Express and ASP.Net, ... so I learned SQL-Server and ADP projects. ... that Microsoft really doesn't have an ... Reports to design your reports. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Merged Word 2003/2007 document from .NET website & SQL data
    ... Or you can "roll your own" merge, generating the Word document dynamically ... However, just out of interest, are you using MS SQL Server (i.e. not some ... Reporting Services as a mechanism for providing reports to the user? ... template/document will include either content controls or mail merge tags ...
    (microsoft.public.word.mailmerge.fields)
  • Re: MS Access Reports and VB.NET Program
    ... Lets say he did upgrade his Access database to Sql Server. ... mind he's using .NET too write his client app. ... rewriting reports in the future. ...
    (microsoft.public.dotnet.languages.vb)