We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,449 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

development with a database

hello everyone,
i have just finished developing my first program that includes a database. i have used instalsheild to make it a file so i can instal it on other PC's. but when i run the program on another computer i get an error, i cant remember what it said but i know that it was still trying to find the access database on my computer that i made the program with.
what do i have to do in the code to make it so it finds the database that has been installed on the computer not the one on my computer.

please help, this is quite urgent

thanks in advance.

2
Contributors
1
Reply
2 Hours
Discussion Span
3 Months Ago
Last Updated
11
Views
martin9t9
Newbie Poster
1 post since Feb 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

You make your db part of your project, so it gets to ride along and create your connection string, relative to your app's directory.
I'm guessing that your problem is a hardcoded connectionstring, so start with that and then verify that you've got the db in the PC you've installed your program.

adam_k
Veteran Poster
1,057 posts since Jun 2011
Reputation Points: 274
Solved Threads: 205
Skill Endorsements: 11

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0563 seconds using 2.68MB