Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friendz,

For Windows Based Application.

I had made one small project in C# in which I'm using MS Access as a Database.
I want to keep that single file (MS Access file) as a shared database. But I don't know how to make it.

-> is there any steps in Deployment so that I can place that access file some where in my or other's system Directory and then using it from my system??

-> Is there any tutorial or something.

I know it is possible if I make it into SQL or SQLYOG But I want to know with this.

Please let me know.. Thanks
Posted
Updated 4-Jan-12 14:59pm
v3
Comments
santosh.giri 5-Jan-12 14:46pm    
I am not sure my question is right or not but please let me know if I am. I want to utilize this idea
Thanks

Look these links, which will help you to share ms access data base
http://office.microsoft.com/en-us/access-help/ways-to-share-an-access-database-HA010279159.aspx[^]

---------------------------------------------------------------------

http://office.microsoft.com/en-us/access-help/set-options-for-a-shared-access-database-mdb-HP005188297.aspx[^]

------------------------------------------------------------------------
http://office.microsoft.com/en-us/access-help/about-sharing-an-access-database-on-a-network-mdb-HP005240860.aspx[^]
 
Share this answer
 
v2
You can tried these steps

make setup of your application
put your database on network drive or shared folder.
install appllication.
when you install this, you can see configuration file,
there may be more than one config file, generally it will be yourappname.config
open it and modify connection string
C#
<add key="ConnectionString" value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\10.0.0.1\oms$\FileInventory\FileInventory.accdb;Jet OLEDB:Database /><br mode=" hold=" /><br mode="></add>
 
Share this answer
 
Comments
santosh.giri 5-Jan-12 9:06am    
Thanks for Information but I'm looking for Desktop based application. And after creating a setup it will ask for Database location either in Local system or in Network drive.

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