473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Include Access Database

I have a project with an access DB that I want to deploy. I have included the DB with the project and it gets included in the published folder but, when I install it on the other computer, the database is in some other folder. I have been tring to connect with this connection string.

"Provider=Microsoft.Jet.OLEDB.4.0;data source=|DataDirectory|\Database\Gymnasts.mdb;Persi st Security Info=False"

But it does not find the DB. I also need to see if I can get it working on a PC that may not have MS Access on it.

I have also tried to use the Deploy packages but nothing ever happens. The only files in the debug folder I get is the .msi and .exe. I read that I should have 5 total not 2. (3 .exe, 1 .msi and 1 .ini )

Going a litte crazy

Any help would be great
Thanks
Oct 28 '08 #1
2 1067
->Ms access its not a reliable database that support multiple user connection, i suggest you use mysql or else next time.

->about db path :
First,save your mdb file in C:\Program Files\[your aplication name]\Support when you work with your vb. That makes conection string that you typed in your program, working after you package (and install in other PC) your app.

Two, other way... try to save your mdb file in persist path location in target PC. mdb file still works, even MsAccess not installed.

i wish it can help.
Oct 31 '08 #2
debasisdas
8,127 Expert 4TB
you need to have the acess file as part of the package or ca copy separtely and paste in a specific path to whih your code refers.

and to use access ,that need not be istalled in he target PC, you can access that from VB.
Oct 31 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: * | last post by:
i am using include("http://".$_SERVER."/db.php"); to include a file. It isnt returning anything or connecting to the database (which is what it is supposed to be doing). any ideas? if i put in...
5
by: Ken | last post by:
Hello: I'm writing my first php app and I have a problem. Initially I put template type strings, such as HTML Headers and page footers in a MySQL table and called them up with a php SQL query to...
3
by: Bryan Harrington | last post by:
I'm working on an application that I will make use of "constants". I put contants in quotes becuase they will change periodically (Logo path, css path, psw expiration times etc). From a system...
3
by: Ken | last post by:
Hi. I've defined a custom database property called Version. It is a text value. I wanted to know if there is a way to include that value on the title bar of a form window. Also, is there a...
3
by: rc | last post by:
Hello, We have several asp.net pages (.aspx) that access SQL server. Currently, we use a connection string like this: Conn=New...
2
by: David Arden Stevensonn | last post by:
On 'sub1.othercompany.com' there is a simple php file with an include that calls a script on my company's server 'sub2.mycompany.com' The script on my company's server seems to work fine when I...
0
by: Valerie Schneider DSI/DEV | last post by:
Hi, I have a set of libraries and C/C++ programs with embedded access to a PG database. I'm using ecpg. I'm working on a Linux RedHat9 platform. Until now I was in PG 7.4.2 : $ ecpg --version...
2
by: William van Zwanenberg | last post by:
Hi there, I wonder if you guys can help. I'm currently experiencing some coding problems what with trying to use PHP and javascript in tandem. What I'm ultimately trying to achieve is use...
3
by: ooba gooba | last post by:
After doing some work in both Java and ASP.NET, I came back to add some major enhancements to a PHP 4 application I built several years ago. A lot of the database access is currently sprinkled...
1
by: arggg | last post by:
I have an external html that is a form. the Values of the form elements have <?= $results ?> type information however with file_get_contents in the main php file that then stores the contents to a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.