473,385 Members | 2,180 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,385 software developers and data experts.

Include a database in deployment

Hi

I've made a simple winform with access to an Access database. I work on my machine but when I install the MSI on another machine it looks for the database the wrong place, what would be the workaround

TI

Tommy
Jul 21 '05 #1
3 1171
How do you locate the database in code?

On Sat, 6 Mar 2004 10:51:06 -0800, mannik
<an*******@discussions.microsoft.com> wrote:
Hi

I've made a simple winform with access to an Access database. I work on my machine but when I install the MSI on another machine it looks for the database the wrong place, what would be the workaround

TIA

Tommy


Jul 21 '05 #2
How are you specifying the connection string? The easiest method is to set
the connection string in the app.config and have all the data access code
look here for the connection string. You can then edit the config file to
point the spot where the MSI puts the access file.

"mannik" <an*******@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...
Hi

I've made a simple winform with access to an Access database. I work on my machine but when I install the MSI on another machine it looks for the
database the wrong place, what would be the workaround
TIA

Tommy

Jul 21 '05 #3
I made it with a DataForm wizard and it connects allright, my connection string looks as

OLE DB:Global Partial Bulk Ops=2,Jet OLEDB:Regesrty path D\Documents and settings......... and here is my database. I'v pasted the database to the Solution explore. I don't understand why I don't see the code to my database when I dobbelclick on my form. Where should I look for it

But I think I found a part of the problem, now I added following files (as I'm not sure which to add) to my installer:
Primary outpu
Content File
Source file
Localized file

Now I get another error when I test on pc no.2 it claims that there are a disk or network error. On pc no. 1 it works but this is the pc where I made the projec

I will be thankfull for all the help I can get

Tommy

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kris | last post by:
Question: How do you create an Installer program using the Package and Deployment Wizard provided by Visual Studio Pro 6.0 (SP5) to include subfolders and their contents. I understand how to...
2
by: Jon Maz | last post by:
Hi, Got a simple one. In the VS.NET Solution Explorer you can right-click on the "bin" folder and there is an option to "Include in Project". Selecting this option changes the icon next to the...
1
by: DB developer | last post by:
Hello friends I am trying to create a deployment project to distribute my VB.NET application with MSDE database. I am using VS.NET with MSDE 2000 deployment toolkit (release candidate) to achieve...
4
by: Manu | last post by:
I would like to create a database for my application when it is deployed. This database can be from different types depending on the tool installed on the customer computer and will be chosen...
1
by: KjartanM-S | last post by:
Hi I've developed a program in VB.NET which i'm trying to deploy to a different computer. I've used the Setup & Deployment wizard project to generate the Deployment files. It initially includes...
2
by: z | last post by:
I'm developing a couple of applications that I need some advice on which database structure to use. My first thought is SQL Server of course, but after looking at my potential users and their...
3
by: mannik | last post by:
Hi I've made a simple winform with access to an Access database. I work on my machine but when I install the MSI on another machine it looks for the database the wrong place, what would be the...
0
by: Just D | last post by:
All, What's the simplest way of a deployment of an application written in C# and using ADO.NET and MS SQL Server? I created a deployment project in the VS2005, aded it to the solution,...
1
by: kitemad69 | last post by:
How i can i deploy and attach a database from a C# project. I created the database in sql manager now i want to deploy it using a C# project is this possible
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.