Solved

Using DataFactory With An Access Database

Posted on 2007-11-23
5
344 Views
Last Modified: 2008-02-01
Just can't seem to find the information needed for this. Currently developing a vb.net application using the DataFactory to access different types of databases (MSAccess, sql server, oracle etc..). However, not sure how to setup the provider detail to access an MS Access database. Any help would be great.
0
Comment
Question by:cehrnow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 20338701
Havent got that object, and not sure if you are referring to RDS Data Factory.

Does this access go thru ODBC?

Would you be using ADO ?

This is an example using ADO (not ADO.Net) but I expect the provider would be a similar string?

rs.Open "SELECT * FROM mytable", _
      "Provider=MS Remote;Remote Server=http://MyServer;DSN=MyODBC"
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 20338733
I checked MSDN and found this, has more info that what Ive given.

http://msdn2.microsoft.com/en-us/library/ms677519.aspx
0
 

Author Comment

by:cehrnow
ID: 20340243
This is not RDS but basically trying to get a local connection. Using the DataFactory provider "OleDb Data Provider" and the following connection string..

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\test.mdb";UserName=;Password="

..I get the error: Could not find installable ISAM when trying to access a table.

Any idea how to get connected to this MSAccess database ?
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 20340868
That string looks right. Ive used that in OleDbConnection, didnt bother specifying username and password though as I didn thave security setup.

Have you had a look at the connection strings in here to see if there is anything helpful for datafactory?

http://www.connectionstrings.com/
http://www.carlprothman.net/Default.aspx?tabid=81

0
 

Author Comment

by:cehrnow
ID: 20342847
Problem was with the connection string - I had UserName instead of User Id !!
Many thanks rockiroads.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question