Solved

Connection String Problem

Posted on 2006-10-27
3
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: 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!

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

623 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