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. .mdf file not updated?

.mdf file not updated?

Scheduled Pinned Locked Moved Database
csharpdatabasesysadminsql-servervisual-studio
4 Posts 2 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.
  • K Offline
    K Offline
    kmllev
    wrote on last edited by
    #1

    We are working on separate computers in different locations so we are not connected to a network. We are using SQL Server 2016 Express to develop a C# application in Visual Studio (college project). My group mate sent me the (.bak) and (.mdf) files of the database he was working on so I can view it and make the necessary updates. I saw the data in the files after restoring and attaching them respectively. Some columns that were in (.bak)file were not in the (.mdf) file, and I need the (.mdf) file to be updated/contain the same data with the .bak file so I can add a datasource to the application for easy retrieval of data. What could possibly have been the problem?

    L 2 Replies Last reply
    0
    • K kmllev

      We are working on separate computers in different locations so we are not connected to a network. We are using SQL Server 2016 Express to develop a C# application in Visual Studio (college project). My group mate sent me the (.bak) and (.mdf) files of the database he was working on so I can view it and make the necessary updates. I saw the data in the files after restoring and attaching them respectively. Some columns that were in (.bak)file were not in the (.mdf) file, and I need the (.mdf) file to be updated/contain the same data with the .bak file so I can add a datasource to the application for easy retrieval of data. What could possibly have been the problem?

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

      kmllev wrote:

      What could possibly have been the problem?

      Could have been any one of a million things. Without much more information it is impossible to guess.

      1 Reply Last reply
      0
      • K kmllev

        We are working on separate computers in different locations so we are not connected to a network. We are using SQL Server 2016 Express to develop a C# application in Visual Studio (college project). My group mate sent me the (.bak) and (.mdf) files of the database he was working on so I can view it and make the necessary updates. I saw the data in the files after restoring and attaching them respectively. Some columns that were in (.bak)file were not in the (.mdf) file, and I need the (.mdf) file to be updated/contain the same data with the .bak file so I can add a datasource to the application for easy retrieval of data. What could possibly have been the problem?

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

        kmllev wrote:

        What could possibly have been the problem?

        Are you sure the columns are in the .bak file? Restore it to a new database, and make sure you have rights to write to the database; post any errors you see here :)

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

        K 1 Reply Last reply
        0
        • L Lost User

          kmllev wrote:

          What could possibly have been the problem?

          Are you sure the columns are in the .bak file? Restore it to a new database, and make sure you have rights to write to the database; post any errors you see here :)

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

          K Offline
          K Offline
          kmllev
          wrote on last edited by
          #4

          Thank you

          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