|
-
Feb 21st, 2005, 04:25 AM
#1
Thread Starter
Frenzied Member
Connect to remote Access DB
Hello everybody,
I need to connect my C# application with access database which is reside on remote sesrver, i.e. http://e.domaindlx.com/usamaalam/TestDB.mdb. I wrote the following code to connect the db but getting exception.
Code:
Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + "http://e.domaindlx.com/usamaalam/TestDB.mdb" + ";Persist Security Info=False";
Conn.Open();
-
Feb 28th, 2005, 05:23 AM
#2
Frenzied Member
Re: Connect to remote Access DB
What is the exception?
I don't think that you can connect to Access over HTTP anyway... I think the database needs to reside locally or on a network share.
Could you create a Web Service on the server and communicate using that?
-
Mar 2nd, 2005, 09:03 AM
#3
Sleep mode
Re: Connect to remote Access DB
 Originally Posted by PilgrimPete
What is the exception?
I don't think that you can connect to Access over HTTP anyway... I think the database needs to reside locally or on a network share.
Could you create a Web Service on the server and communicate using that?
Not totally correct . My friend could wire ASP.NET with Access db as back end .It's working fine with him.
-
Mar 2nd, 2005, 09:13 AM
#4
Frenzied Member
Re: Connect to remote Access DB
Cool - can you share how? I might need to do that soon! 
(The only way I managed so far was through an ASP page posting XML to the Response and Request objects. Works, but isn't ideal...)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|