User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 456,601 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,481 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 4370 | Replies: 2
Reply
Join Date: Aug 2007
Posts: 16
Reputation: chait_anya is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
chait_anya chait_anya is offline Offline
Newbie Poster

Help Remote OLEDB connection with Access 2003 database.

  #1  
Sep 6th, 2007
hi...
am using access 2003 databse in my application. i want my databse to be on the 1 pc in the LAN. and my application created in c# will be on the all machines in the LAN. So in that application i have made connection string as
" Provider = Microsoft.OLEDB.JET.4.0; server=IPAddressOfTheServer;Data Source= \\ServerName\path of .mdb database file"

if i run my apllication it gives me exception as "Could not find Installable ISAM "

but if i change path to localhost then above string is working.
so can you please tell me above problem or how to access databse on the server from client in above case???????

thanx in advaced.
regards
chaitanya.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 763
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: Remote OLEDB connection with Access 2003 database.

  #2  
Sep 13th, 2007
try this http://www.mvps.org/access/bugs/bugs0017.htm if the problem is the same contact me again
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Aug 2007
Posts: 16
Reputation: chait_anya is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
chait_anya chait_anya is offline Offline
Newbie Poster

Solution Re: Remote OLEDB connection with Access 2003 database.

  #3  
Sep 17th, 2007
hi ....
I got the answer for above and here we go....

The connection string for remote access database is ->

public static string conn_str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\\\Server-PC-Name\\D\\DatabaseName.mdb;Persist Security Info=True;User ID=root;Jet OLEDBatabase Password=Admin";


look at the '\\\\' in the connection string. the error "Could not find Installable ISAM " might have come because i added only two slashes("\\") instead of four.

second point is that if your server has password then you have to access the remote PC mannually by typing "\\ServaerName" in the run dialog. or direactly access from My Network
Place. Otherwise it wont work.

user name and password in the connection string are the user name and password of the database and not the login for your remote server. you have to access it mannually.

Lets hope this will be usefull for the beginers.
thanx n regards.
chaitanya.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 7:03 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC