Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Connection String Problem

Good Day experts...

Please tell what is wrong...

I Uploaded my database in my Resources then I use the Connection string below to connect to my database...

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\My Project\dbRoomReservation.mdb;Persist Security Info=True;Jet OLEDB:Database Password=()cena"

Everything went find... Until I Package my application,

When I run the software the database cannot be found... what am I doing wrong?

Thanks...
{Jack}
0
JackOfPH
Asked:
JackOfPH
1 Solution
 
gangwischCommented:
here is a good site for what you need:
http://www.connectionstrings.com
0
 
JackOfPHAuthor Commented:
I know... but why is it that when I compile my program, The program can't find the path. It gives me invalid path...
0
 
DEEPESHCommented:
if you are reading from config file then Please check whether it is lying under proper folder or not.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now