473,387 Members | 1,876 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,387 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 1172
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
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.