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 655261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:35:03+00:00 2026-05-13T22:35:03+00:00

Using C#, I’m trying to create a form with a dataGridView that shows the

  • 0

Using C#, I’m trying to create a form with a dataGridView that shows the contents of a fixed width, flat file database. Does using the “Microsoft Text Driver” require the use of a schema.ini file? Below is the connection string I’m using. I cant seem to get the grid to fill regardless of whether I use one or not but I’m not sure if I even need it to begin with. I’m not finding a whole lot of info on the subject. I’m also not sure if this is even the best method for working with such files. Any guidance would be appreciated.

string ConnectionString = @"Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ=c:\files";

Thanks

  • 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-13T22:35:04+00:00Added an answer on May 13, 2026 at 10:35 pm

    It has been a while, but I believe you must have the schema.ini.

    I used this driver often years ago. (Monthly reporting for four years.) Not too much need for it today. I never had a problem using it. Any problems were usually due to issues with the text file.

    Schema.ini File (Text File Driver) at
    http://msdn.microsoft.com/en-us/library/ms709353(VS.85).aspx

    Bing Search at
    http://www.bing.com/search?q=%22Schema.ini+File+%28Text+File+Driver%29%22

    Information regarding this driver is under ODBC at MSDN Library.

    Working schema.ini example for two text files:

    [networth.txt]
    ColNameHeader=False
    Format=TabDelimited
    MaxScanRows=25
    CharacterSet=OEM
    
    [trans.txt]
    ColNameHeader=False
    Format=TabDelimited
    MaxScanRows=25
    CharacterSet=OEM
    Col1=F1 Char Width 255
    Col2=F2 Char Width 255
    Col3=F3 Char Width 255
    Col4=F4 Char Width 255
    Col5=F5 Char Width 255
    Col6=F6 Char Width 255
    Col7=F7 Float
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Entity Framework CodeFirst, how do I create a created datetime column that gets
Using interface builder, I want an a button that when clicked shows you a
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I have a reasonable size flat file database of text documents mostly saved in
Using CRM 4, I have an entity form that contains a tab with an
Using ASIHTTPRequest, I downloaded a zip file containing a folder with several audio files.
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Using linq2sql I'm trying to take the string in txtOilChange and update the oilChange
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly

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.