CREATE FILE encountered operating system error 5(failed to retrieve text for this error. Reason: 15105)

前端 未结 25 2266
梦毁少年i
梦毁少年i 2020-12-13 23:44

I have a database file .mdf from MS SQL EXPRESS in folder:

C:\\Program Files\\Microsoft SQL Server\\MSSQL10.SQLEXPRESS\\MSSQL\\DATA
25条回答
  •  暖寄归人
    2020-12-14 00:19

    If you are already running as an adminstrator, make sure the user you are using has the proper server roles.

    1. Login as sa (if you can)
    2. Expand the Security folder
    3. Expand the Logins Folder
    4. Right click on the user you would like to use
    5. Select Properties
    6. Select Server Roles
    7. Select all the server roles
    8. Click OK
    9. Restart SSMS
    10. Login with the modified user

提交回复
热议问题