Restore SQL Server 2012 error

cdub

I backed up a database from a SQL Server 2005 using my SSMS Task and called it datalab_auth.bak.

I then tried to restore it to my SQL Server 2012 but keep getting the following error:

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\MSSQL11.MSSQL11\MSSQL\datalab_auth.mdf'. (Microsoft.SqlServer.SmoExtended)

I tried to set the path in the above error to have permissions of Everyone to Full. Which it is currently set to.

What am I missing?

Donal

When you are performing a restore, make sure you set the option to "Overwrite the existing database" in the restore wizard.

enter image description here

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Numbering islands in SQL Server 2012

分類Dev

SQL Server 2012 Pivot Table

分類Dev

Issue with website deployed to IIS and connecting to SQL Server 2012, getting network not found error

分類Dev

SQL Server 2012 Reporting Services users get error permissions are insufficient rsAccess

分類Dev

No process is on the other end of the pipe (SQL Server 2012)

分類Dev

SQL Server2012のRANDBETWEEN

分類Dev

Requires SQL Server 2012 Express LocalDB

分類Dev

SQL Server 2012のJSON_VALUE?

分類Dev

How to check history in SQL Server 2012?

分類Dev

Move database from SQL Server 2012 to 2008

分類Dev

SQL Server 2012 Pivot Dynamic with Values?

分類Dev

SQL Server2014とSQLServer 2012

分類Dev

Merge data into one column - sql server 2012

分類Dev

authentication with node.js in SQL server 2012

分類Dev

PHP Connection to MS SQL Server 2012

分類Dev

MS-SQl Server 2012 for ubuntu

分類Dev

SQL Server2012で転置

分類Dev

SQL Server2012クエリ

分類Dev

Windows Server 2012、SQL Server 2012、および.NET Framework 4.0

分類Dev

SQL Server 2012 ORDERBYでのEXCEPTの使用

分類Dev

How to get COUNT(*) from one partition of a table in SQL Server 2012?

分類Dev

SQL Server2012の平均とケース

分類Dev

SQL Server 2012の128ビットInt?

分類Dev

Subtract hours from SQL Server 2012 query result

分類Dev

SQL Server2012の再帰的減衰平均

分類Dev

SQL Server2012のページ付け

分類Dev

SQL Server 2012:GROUP BY秒、分、時間

分類Dev

SQL Server2012のSTRING_SPLIT

分類Dev

How to retrieve only particular part of string in SQL Server 2012