Solved

Using DataFactory With An Access Database

Posted on 2007-11-23
5
338 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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…

739 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