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!