Click here to Skip to main content
16,022,054 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi, Iam using VS-2015 C# Windows Applications with Access Database. Last week I purchased a Domain & Hosting also done. Now I place my Database [.accdb] to my Domain. For that I need a connection String. Is it possible? Kindly help me to update myself. Thanks !

My Current connection String for local application

String MyDBConStr="Provider=Microsoft.ace.Oledb.12.0; Data Source='D:\\MyPrgs\\Data\\MyInvoice_Management.accdb'; Persist Security Info=False" 

For Remote Access to my Domain I Tried...

String MyDBConStr="Provider=Microsoft.ace.Oledb.12.0; Data Source='MyWebsite.net'; port=3386; Initial Catalog='\\MyData\\MyInvoice_Management.accdb';   username=MyUsername;password=MyPassword; " ???????????

Kindly advise me to the right directions. Thanks again!

What I have tried:

I tried to connect with my database placed in domain and inside the data folder.
Posted

1 solution

 
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