Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Connection string to access database in C# Windows form.

$
0
0

Hello,

 I have created one setup project and am using this connection string.

connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Micronet\Documents\EmployeeData.accdb;Persist Security Info=False;";

But after creating the setup and installed in other machine am not able to save the data because its searching for particular location 

C:\Users\Micronet\Documents\EmployeeData.accdb

and while creating setup file I already included database file EmployeeData.accdb.So what I am missing any help??

Thanks,


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>