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

前端 未结 25 2055
梦毁少年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:10

    Giving admin rights or full control to my database install location solved my problem

    0 讨论(0)
  • 2020-12-14 00:15

    No need to do all this. Just right click on database files and add permission to everyone. That will work for sure.

    0 讨论(0)
  • 2020-12-14 00:16

    I got this error when restoring a database that was backed up on another server. After a long struggle this is what I did

    1. Enabled Instant File Initialization,

    2. Granted permissions (full control) on the folder to the service account and my own windows account,

    3. Restarted the SQL service. Database restored after that.

    0 讨论(0)
  • 2020-12-14 00:16

    copy your --.MDF,--.LDF files to pate this location For 2008 server C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA 2.

    In sql server 2008 use ATTACH and select same location for add

    0 讨论(0)
  • 2020-12-14 00:18

    I was able to solve the problem running MS SQL Management Studio as ADMINISTRATOR.

    0 讨论(0)
  • 2020-12-14 00:18

    I was getting similar error.

    CREATE FILE encountered operating system error **32**(failed to retrieve text for this error. Reason: 15105) while attempting to open or create the physical file
    

    I used the following command to attach the database:

    EXEC sp_attach_single_file_db @dbname = 'SPDB',
    @physname = 'D:\SPDB.mdf'
    
    0 讨论(0)
提交回复
热议问题