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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. HowTo: Move DataBase

HowTo: Move DataBase

Scheduled Pinned Locked Moved C#
databasequestion
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.
  • A Offline
    A Offline
    Ariadne
    wrote on last edited by
    #1

    Hi, I had to move a MSAccess Database to a new location. In VS2005: Is it possible to change the path only without recreating all queries and tableconectors etc.? Thanks!

    Ariadne

    A A 2 Replies Last reply
    0
    • A Ariadne

      Hi, I had to move a MSAccess Database to a new location. In VS2005: Is it possible to change the path only without recreating all queries and tableconectors etc.? Thanks!

      Ariadne

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      It should be, your connection string defines the path to the MDB, all the queries etc are running on the connection.

      Bob Ashfield Consultants Ltd

      1 Reply Last reply
      0
      • A Ariadne

        Hi, I had to move a MSAccess Database to a new location. In VS2005: Is it possible to change the path only without recreating all queries and tableconectors etc.? Thanks!

        Ariadne

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Ariadne wrote:

        I had to move a MSAccess Database to a new locati

        so, you have just move the MDB file, then you dont need to change in any query or table etc. just change the DBpath in connection string . Thanks

        Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

        A 1 Reply Last reply
        0
        • A Abhijit Jana

          Ariadne wrote:

          I had to move a MSAccess Database to a new locati

          so, you have just move the MDB file, then you dont need to change in any query or table etc. just change the DBpath in connection string . Thanks

          Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

          A Offline
          A Offline
          Ariadne
          wrote on last edited by
          #4

          Abhijit Jana wrote:

          just change the DBpath in connection string

          is there a usual way in VS2005? I tried to change all occurrences of the old DBPath into the new one. But VS allways looks at the old path.

          Ariadne

          A 1 Reply Last reply
          0
          • A Ariadne

            Abhijit Jana wrote:

            just change the DBpath in connection string

            is there a usual way in VS2005? I tried to change all occurrences of the old DBPath into the new one. But VS allways looks at the old path.

            Ariadne

            A Offline
            A Offline
            Ariadne
            wrote on last edited by
            #5

            one has to compile the project! Then the DB-Path is changed... And if you want to use the new DB-Path in your xsd DataSet (eg. Data Preview) you have to restart VS. Thanks

            Ariadne

            modified on Thursday, June 26, 2008 5:57 AM

            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