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}
LVL 15
JackOfPHAsked:
Who is Participating?
 
DEEPESHCommented:
if you are reading from config file then Please check whether it is lying under proper folder or not.
0
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.