Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear My Friends:

1. Is it neccesary to install Access on the target machine in a C# project with an Access DB?

2. If it is not neccesary to install Access, is it possible to change some fields of my access DB through my C# program?

(I made a windows application program that it has some Access DB. if I bring this program to another computer that has not installed Access , does the program work properly or not. please just tell me yes or no.)

SINCERELY
Posted
Updated 13-Jan-13 8:21am
v3
Comments
David_Wimbley 13-Jan-13 14:12pm    
do you have an access database set up on a remote computer? Are you able to connect to it (no firewall issues)?

When you say change fields do you mean change values of the fields or change the schema? You can do both.

Your question is not very clear and does not lead to what your end goal is. Use the Improve Question widget to better define your requirements.
Mmohmmad 13-Jan-13 14:15pm    
I made a windows application program that it has some Access DB. if I bring this program to another computer that has not Access installed, does the program work properly or not. please just tell me yes or no.
David_Wimbley 13-Jan-13 14:20pm    
Simply installing your app that has a localized access database on your PC and not bringing the database along with it will not work.

You either need to deploy the app with the database in the project or host the access database on some other server/computer and point your connection strings to that database remotely. Ill submit some links as your solution to get you going.
Mmohmmad 13-Jan-13 14:24pm    
Dear David:

I deploy the app with the database in the project. I just want to know that if my target mashine does not have installed Access does my program work properly or not?
David_Wimbley 13-Jan-13 14:30pm    
is your app 32 or 64 bit? To my knowledge if its 64 bit you will have issues with access database as you will need to download 64bit access on the PC.

The jet engine is on the PC by default since windows 2000 i believe.

However depending on what version of access you are using and your target machine you may have issues.

1 solution

If you are going to host the database on a server/pc and connect to it from your work station here are some links

http://www.c-sharpcorner.com/uploadfile/mimrantaj/connect-to-access-database-in-C-Sharp-and-ado-net/[^]

http://msdn.microsoft.com/en-us/library/5ybdbtte%28v=vs.71%29.aspx[^]

If your deploying your app with a local access database on the PC youll need to create an installer package and add the access database to it so when it installs it will add the access database as well. Youll need to right click on your setup project, select view and then file system. In there you can add the database to the setup project so it will be deployed with your app

Creating a setup project:
http://www.youtube.com/watch?v=Lcue0jo41AM[^]


More information on installers
http://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.100%29.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900