Click here to Skip to main content
16,020,973 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
Hey guys,
Here's the thing. I have a database in MS access. I have made an application that has to access this DB. Now this database
is on another machine. Lets call it pc1. pc1 and my machine are in same wireless network. But when i try to connect to the database connection fails. Do need to put on internet or is there a workaround for this? let me put connection string i am using for this. Please let me know if there's anything wrong with it.

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\xxx.xxx.xxx.xxx\\C:\\Users\\user1\\Documents\\DB1.accdb;

Thanks
Ajinkya
Posted
Updated 6-Apr-11 22:54pm
v3

You can see this links
Click
Click
Click
 
Share this answer
 
if you are using this from local network then try with Network Mapping Drive
E.g. \\xxx.xxx.xxx.xxx\\C:\\Users\\user1\\ connect this Network directory to Z: and write your connection string like
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=z:\\DB1.accdb;
 
Share this answer
 
<add key="dbConnection" value="Database=xxxxxx;Data Source=xx.xx.xxx.xxx;User Id=xx;Password=xx4;connection timeout = 50000"/>
 
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