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. C#
  4. changing the database location

changing the database location

Scheduled Pinned Locked Moved C#
databasecsharphelp
6 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.
  • M Offline
    M Offline
    Mubeen asim
    wrote on last edited by
    #1

    hello.. i have an msaccess database in my c# project given the path as c:\my proj\db.mdb and in my second project i reffered to the same database and when i change the db.mdb from its original location the visutal studio cant find the db and giving an error.... is if possible to change the path of the database after adding to the project...thanks...

    A 1 Reply Last reply
    0
    • M Mubeen asim

      hello.. i have an msaccess database in my c# project given the path as c:\my proj\db.mdb and in my second project i reffered to the same database and when i change the db.mdb from its original location the visutal studio cant find the db and giving an error.... is if possible to change the path of the database after adding to the project...thanks...

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

      Thats what app.config is for.

      Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

      M 1 Reply Last reply
      0
      • A Ashfield

        Thats what app.config is for.

        Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

        M Offline
        M Offline
        Mubeen asim
        wrote on last edited by
        #3

        thanks... that was xtremly helpful...

        A 1 Reply Last reply
        0
        • M Mubeen asim

          thanks... that was xtremly helpful...

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

          Do I detect a hint of sarcasm here?

          Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

          M 1 Reply Last reply
          0
          • A Ashfield

            Do I detect a hint of sarcasm here?

            Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

            M Offline
            M Offline
            Mubeen asim
            wrote on last edited by
            #5

            sorry if u have fealt like that but ur answer solved my problem.. cause i had googled it with long strings but colud not find any relavant answers....

            A 1 Reply Last reply
            0
            • M Mubeen asim

              sorry if u have fealt like that but ur answer solved my problem.. cause i had googled it with long strings but colud not find any relavant answers....

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

              No offence intended, its just that often if you just give someone a hint they can't be bothered to follow it up, they expect complete code samples. I'm pleased it helped, I generally only give an idea of the answer, as by finding out for yourself you learn. Obviously in your case it applied :)

              Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

              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