Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7413427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:54:40+00:00 2026-05-29T06:54:40+00:00

This is a followup question to the question: I am attempting to read a

  • 0

This is a followup question to the question:

I am attempting to read a Fixed Format Text file using the Microsoft.ACE.OLEDB.12.0 Provider. I have a half dozen different ways to setup the driver and/or provider and pretty much run into the same problem every time. I am for some reason unable to even “get started” because of “Could not find installable ISAM” exceptions or errors and exceptions with the driver.

The system has Office 2007 installed so the “Could not find installable ISAM” does not make a great deal of sense.

Does anyone see the problem with the following code?

string DATABASE_PROVIDER = "Provider=Microsoft.ACE.OLEDB.12.0";
string CVS = Application.StartupPath + @"\Data.txt";
string connectionString = DATABASE_PROVIDER = ";Data Source=" + CVS +";Extended Properties=text;HDR=Yes;FMT=Fixed";
string field ="*";
string table ="Data";
string StringQueryCMD = "SELECT" + field+" FROM " + table;
OleDbConnection myConnection = new OleDbConnection( connectionString );
OleDbCommand cmd = myConnection.CreateCommand();
cmd.CommandText = StringQueryCmd;
myConnection.Open(); // <---- "Could not find installable ISAM" exception here
OleDataAdapter myDataAdapter = new OleDbDataAdapter(cmd);
DataTable Table = new DataTable("Data");// <---- "Could not find installable ISAM" exception here

myDataAdapter.Fill(Table);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:54:41+00:00Added an answer on May 29, 2026 at 6:54 am

    I ended up going with a slightly different solution. The solution to the “Could not find installable ISAM” exception was to use the following:

    string EXTENDED_PROPERTIES = @"Extended Properties=""Text;HDR=YES;FMT=FixedLength;""";
    

    The key to the solution is the “(s) around the “Extended Properties” values. I was able to populate the DataTable with the contents of the file, I think there was a problem with the ini file, so it contained strings of “—–” which was useless to me.

    So I ended up simply reading the access database.

    string DATABASE_PROVIDER = "Provider=Microsoft.ACE.OLEDB.12.0";
    string CVS Application.StartupPath + ""\\Database.accdb";
    string DATA_SOURCE = "Data Source" + CVS;
    string connectionString = DATABASE_PROVIDER + DATA_SOURCE;
    string TABLE = " FROM STUFF";
    string SELECT = "SELECT CODE, NAME, ICON, FUNCTION;
    string StringQueryCmd = SELECT + TABLE;
    
    OleDbConnection MyConnection = new OleDbConnection(connectionString);
    OleDbCommand Command = OleDbCommand(StringQueryCmd,MyConnection);
    OleDbAdapter MyDataAdapter = new OleDbAdapter(Command);
    DataSet MyDataSet = new DataSet();
    DataTable MyDataTable = new DataTable();
    MyConnection.Open();
    MyDataAdapter.Fill(MyDataSet,"STUFF");
    MyConnection.Close();
    

    Once you have a DataTable you could in theory use LINQ to DataSet instead of dealing with the DataTable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a followup question to my other question : Run bat file in
NOTE: This is a followup to my question here. I have a program that
This is a followup to my last question . I now have a byte[]
this is followup to this question : Assigning 1 line of a txt file
This is a followup/post question to another question; as I have discovered a solution
I have a followup question to this question . I'm writing a web service
This is a followup to a question I asked yesterday: Have you ever had
This is a followup to my previous question. Parsing file names from a character
this is a followup on my former question here . The resulting file which
Its a followup question of this . I'm trying to wrap the selected text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.