I am new to C#. I want to run my application on LAN. My MS Access database path is D:\AccessDatabase
. So I defined my connection string like this
<add name="connect18-19"
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\AccessDatabase\Next-Medicine17-18.accdb;Jet OLEDB:Database Password=MyDBPassword"
providerName="System.Data.OleDb" />
I had tried by modifying Data Source
in connection string with my computer name i.e. Data Source=ComputerName\D:\AccessDatabase\Next-Medicine17-18.accdb
but that did not work.
What am I missing?
Comments
Post a Comment