ykburda :)
Problem:
The operating system returned the error ‘5(Access is denied.)’ while attempting ‘RestoreContainer::ValidateTargetForCreation’
System.Data.SqlClient.SqlError: The operating system returned the error ‘5(Access is denied.)’ while attempting ‘RestoreContainer::ValidateTargetForCreation’
şeklinde yazan problem genellikle restore yaparken karşımıza çıkmaktadır. SQL Server 2005 te ayarlardan dolayı olmaktadır.
Symptoms:
I have local admin rights and am logging into SQL 2005 Express as
’sa’, but when I try to restore the SQL 2000 database, I get the
following error:
TITLE: Microsoft SQL Server Management Studio Express
Restore failed for Server ‘TESTBox\TESTDB’.
(Microsoft.SqlServer.Express.Smo)
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: The operating system returned the
error ‘5(Access is denied.)’ while attempting
‘RestoreContainer::ValidateTargetForCreation’ on ‘c:\Program Files
\Microsoft SQL Server\MSSQL.2\MSSQL\TestReport.mdf’.
(Microsoft.SqlServer.Express.Smo)
I’m not sure if this is saying access denied to c:\Program Files
\Microsoft SQL Server\MSSQL.2\MSSQL\ or if this is a security issue
with MS SQL 2005. On the Restore Database window it shows ’sa’ under
Connection, and my logged in user account is local admin on the box.
Any ideas or suggestions?
After installing SQL Express and trying to restore a SQL Server 2000 database to a new database I got the following error:
Restore failed for Server ‘<SERVERNAME>\SQLEXPRESS’. (Microsoft.SqlServer.Express.Smo)
Restore failed for Server ‘localhost\sqlexpress’. (Microsoft.SqlServer.Express.Smo)
Additional information:
System.Data.SqlClient.SqlError: The operating system returned the error ‘5(Access is denied.)’ while attempting ‘RestoreContainer::ValidateTargetForCreation’ on ‘c:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\[my database name].mdf’. (Microsoft.SqlServer.Express.Smo)
Solution1:
Solution2:
Biz kendimizi, neler yapabileceğimize bakarak yargılarız; başkaları da neler yaptığımıza bakarak yargılar
—
Yorum YAZIyorum