Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Unable to Restore MDF file in Vista

Unable to Restore MDF file in Vista

Scheduled Pinned Locked Moved Database
databasehelpsharepointsql-serversysadmin
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sumit7034
    wrote on last edited by
    #1

    hi I want to restore mdf file in my sqlserver database. i am using: EXEC sp_attach_single_file_db @dbname = 'testerDB', @physname = 'F:\DB.mdf' to restore that mdf file but it gives the error: ERROR: ERROR: Unable to open the physical file "F:\DB.mdf". Operating system error 5: "5(Access is denied.)". I am working with SQL Server 2005 express edition and Os is Vista Ultimate. Please Help Thanks in advance

    J L 2 Replies Last reply
    0
    • S sumit7034

      hi I want to restore mdf file in my sqlserver database. i am using: EXEC sp_attach_single_file_db @dbname = 'testerDB', @physname = 'F:\DB.mdf' to restore that mdf file but it gives the error: ERROR: ERROR: Unable to open the physical file "F:\DB.mdf". Operating system error 5: "5(Access is denied.)". I am working with SQL Server 2005 express edition and Os is Vista Ultimate. Please Help Thanks in advance

      J Offline
      J Offline
      Jerry Hammond
      wrote on last edited by
      #2

      There are about 1.2^10 reasons why this would occur and none of them have anyting to with your OS being Vista.

      “If you think you are worth what you know, you are very wrong. Your knowledge today does not have much value beyond a couple of years. Your value is what you can learn and how easily you can adapt to the changes this profession brings so often.”-– Jose M. Aguilar

      S 1 Reply Last reply
      0
      • J Jerry Hammond

        There are about 1.2^10 reasons why this would occur and none of them have anyting to with your OS being Vista.

        “If you think you are worth what you know, you are very wrong. Your knowledge today does not have much value beyond a couple of years. Your value is what you can learn and how easily you can adapt to the changes this profession brings so often.”-– Jose M. Aguilar

        S Offline
        S Offline
        sumit7034
        wrote on last edited by
        #3

        If u don't know the answer then its ok...

        J 1 Reply Last reply
        0
        • S sumit7034

          hi I want to restore mdf file in my sqlserver database. i am using: EXEC sp_attach_single_file_db @dbname = 'testerDB', @physname = 'F:\DB.mdf' to restore that mdf file but it gives the error: ERROR: ERROR: Unable to open the physical file "F:\DB.mdf". Operating system error 5: "5(Access is denied.)". I am working with SQL Server 2005 express edition and Os is Vista Ultimate. Please Help Thanks in advance

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          A file that ends in ".mdf" is a database, not a backup. You can restore backups (*.bak), but not the "*.mdf". You can, however, attach the database to your local server by right-clicking on the "databases"-node and choosing "attach" from the SQL Server Management Studio. Good luck with your venture :)

          1 Reply Last reply
          0
          • S sumit7034

            If u don't know the answer then its ok...

            J Offline
            J Offline
            Jerry Hammond
            wrote on last edited by
            #5

            Ok, smarty pants, see Eddy's post to understand why your problem had absolutely nothing to do with the OS you are using.

            “If you think you are worth what you know, you are very wrong. Your knowledge today does not have much value beyond a couple of years. Your value is what you can learn and how easily you can adapt to the changes this profession brings so often.”-– Jose M. Aguilar

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups