Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, please i need to connect MS-Access database over a server.
In my Visual Studio Solution, i have two (2) websites, A & B.
I have a database (data.accdb) in website A and i need to connect that database in website B. I used the raw path to the database on the computer and it worked but what i need is how to connect in the server after i have hosted the website or locally.
How will i use this parameter below
Provider=Microsoft.ACE.OleDb.12.0; Data Source=\\server\share\folder\myAccessFile.accdb;

Any help is needed, thanks
Posted

1 solution

On your local machine you can try to create an odbc connection. Then you can use an connection string accessing the odbc source. I don't know if you have administrative permissions for the webserver where the website will be hosted later. If yes, you could do the same there. If not, I don't know an alternative.

However: Please keep in mind that odbc connections are not very fast and access is no good database solution for websites. Consider using an sql server (sql express if your customer has no money)
 
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