changing the database location
-
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...
-
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...
-
Thats what app.config is for.
Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP
thanks... that was xtremly helpful...
-
thanks... that was xtremly helpful...
-
Do I detect a hint of sarcasm here?
Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP
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....
-
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....
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