Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Security / October 2005

Tip: Looking for answers? Try searching our database.

Access Denied Error when attaching a Database file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WayneM - 30 Sep 2005 00:02 GMT
I have a server that crashed, so a new OS was installed.  I now have access
to the drive where the database file exists.  I am now trying to either copy
that file onto a new server or reattach it to a new insance of SQL Server.  
In both cases I get a Access denied error.

Any suggestions on how to get around this ?

Thanks in advance,

WayneM
Mike Epprecht (SQL MVP) - 30 Sep 2005 01:35 GMT
Hi

Right click on the File > Properties, Security Tab.

Change the permissions that you can access it.

You may want to login as administrator and take ownership of the directory
too.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

>I have a server that crashed, so a new OS was installed.  I now have access
> to the drive where the database file exists.  I am now trying to either
[quoted text clipped - 7 lines]
>
> WayneM
Hari Prasad - 30 Sep 2005 07:29 GMT
Hi,

See if the SQL Server service starup accoung have read/write access to the
folder.

Thanks
Hari
SQL Server MVP

>I have a server that crashed, so a new OS was installed.  I now have access
> to the drive where the database file exists.  I am now trying to either
[quoted text clipped - 7 lines]
>
> WayneM
WayneM - 30 Sep 2005 19:47 GMT
Is it possible that the database file is corrupted?  I am able to copy the
Master database file, but not my application database.  Is there a simple way
to determine if the file is or is not corrupted?

Thanks,

WayneM

> Hi,
>
[quoted text clipped - 16 lines]
> >
> > WayneM
Keith Wilson [MSFT] - 05 Oct 2005 23:36 GMT
Is there a backup of these database(s), and is the backup file on a
different hard drive or server?

Regards,
                       Keith

This posting is provided "as is" without inferring rights or warranties.

> Is it possible that the database file is corrupted?  I am able to copy the
> Master database file, but not my application database.  Is there a simple
[quoted text clipped - 28 lines]
>> >
>> > WayneM
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.