Solved

Connection String Problem

Posted on 2006-10-27
3
194 Views
Last Modified: 2010-05-18
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
Comment
Question by:JackOfPH
3 Comments
 
LVL 10

Expert Comment

by:gangwisch
ID: 17824073
here is a good site for what you need:
http://www.connectionstrings.com
0
 
LVL 15

Author Comment

by:JackOfPH
ID: 17824119
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
 
LVL 5

Accepted Solution

by:
DEEPESH earned 500 total points
ID: 17824572
if you are reading from config file then Please check whether it is lying under proper folder or not.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Parallel.ForEach using SendMailAsync() detect when loop is complete 24 54
Create XML 5 46
VB.Net - Oracle BulkCopy from CSV Date Format 7 44
SQL syntax in VB.net 5 27
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now