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. General Programming
  3. Windows API
  4. Error when Copy and Move Database files .mdf and .ldf on Vista/Win7

Error when Copy and Move Database files .mdf and .ldf on Vista/Win7

Scheduled Pinned Locked Moved Windows API
helpquestiondatabase
3 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.
  • T Offline
    T Offline
    tannghia
    wrote on last edited by
    #1

    I have a folder contain 2 file .mdf and .ldf.I can't create file .rar from this folder because Win7/Vista not permit to access with the error "Access is denied".I want to compress this folder to bring to other computer. How can I do this? Please help me!!! Thanks so much!!!

    L R 2 Replies Last reply
    0
    • T tannghia

      I have a folder contain 2 file .mdf and .ldf.I can't create file .rar from this folder because Win7/Vista not permit to access with the error "Access is denied".I want to compress this folder to bring to other computer. How can I do this? Please help me!!! Thanks so much!!!

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

      Install SQL Management Studio, create a backup of the database, and restore it on the computer where you want the database. Alternatively, you could "detach"[^] the file from SQL Server and copy the files by hand.

      I are Troll :suss:

      1 Reply Last reply
      0
      • T tannghia

        I have a folder contain 2 file .mdf and .ldf.I can't create file .rar from this folder because Win7/Vista not permit to access with the error "Access is denied".I want to compress this folder to bring to other computer. How can I do this? Please help me!!! Thanks so much!!!

        R Offline
        R Offline
        RWolff
        wrote on last edited by
        #3

        whenever I get access denied I use the handy unlocker found here http://download.cnet.com/Unlocker/3000-2248_4-10493998.html[^] but of course stopping the server first would also unlock those files without any fuss.

        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