Home  >  Article  >  php教程  >  Microsoft Sql Server Error 5123 Attached Database Error

Microsoft Sql Server Error 5123 Attached Database Error

高洛峰
高洛峰Original
2016-12-16 11:05:541754browse

When Microsoft Sql Server attaches a database, reinstalling the system and renaming the host name or logging in with a Windows identity may cause this result. This error may be reported under Vista or Windows 7

The reason is that the database file you want to attach is (.mdf) and log files (.ldf) do not have operation permissions

Solution: Very simple first step: find the database file (.mdf) log file (.ldf) second step: right-click and select "Properties", then select "Security" tab, then select "Edit" Step 3: Select "Add" Step 4: Select "Advanced" Step 5: Select "Find Now" and find "Everyone" in the search results below , select, confirm

Step 6: Set the permissions of "Everyone" to "Full Control", apply

Step 7: Confirm


For more Microsoft Sql Server Error 5123 Attached Database Error related articles please Follow PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn