FIX: You receive an error message when you try to configure a Text DSN in MDAC 2.8 SP1: "Ini File is corrupt"
This article has been archived. It is offered "as is" and will no longer be updated.
When you try to configure a Text Data Source Name (DSN) by using the Microsoft ODBC Data Source Administrator tool on a computer that is running Microsoft Windows XP Service Pack 2 (SP2) or Microsoft Windows 2003, you may receive the following error message:
Ini File (or Registry) FilePath\schema.ini is corrupt.Note FilePath is a placeholder for the path of the folder that contains the Schema.ini file on your computer.
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.
If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.
Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Date Time Version Size File name ----------------------------------------------------------- 23-Jul-2004 05:45 5.2.9354.0 26,112 _sfx_.dll 24-Aug-2004 09:32 4.0.6305.0 278,559 Odbcjt32.dll
To work around this problem, specify the column type, as shown in the following Schema.ini file:
[Sample.txt] ColNameHeader=False Format=CSVDelimited MaxScanRows=25 CharacterSet=OEM Col1=F1 Integer Col2=F2 Char width 255 Col3=F3 Integer
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Steps to reproduce the problem
- Create a text file by using Notepad.
- On a computer that is running Windows XP SP2, paste the following code in Notepad.1, hello, 23
- Save the text file as Sample.txt.
- On a computer that is running Windows XP SP2, paste the following code in Notepad.
- Create a Text DSN, and then point the Text DSN to the folder that contains the Sample.txt file.
- In Control Panel, double-click Administrative Tools, and then double-click Data Sources (ODBC). The ODBC Data Source Administrator dialog box appears.
- On the System DSN tab, click Add. The Create New Data Source dialog box appears.
- Click Microsoft Text Driver (*.txt; *.csv) in the Select a driver for which you want to set up a data source list, and then click Finish. The ODBC Text Setup dialog box appears.
- Type testds in the Data Source Name box.
- Type Test data source in the Description box.
- Click to clear the Use Current Directory check box, and then click to select the Select Directory check box. The Select Directory dialog box appears.
- Locate the folder where you saved the Sample.txt file on your computer, and then click OK.
- In the ODBC Text Setup dialog box, click OK.
- Configure the Text DSN by using the ODBC Data Source Administrator tool.
- Create a text file in the same folder as the Sample.txt file.
- Add the following text to the text file:
[Sample.txt]ColNameHeader=FalseFormat=TabDelimitedMaxScanRows=25CharacterSet=OEMCol1=F1 IntegerCol2=F2Col3=F3 Integer
- Save the text file as Schema.ini.
- In the ODBC Data Source Administrator dialog box, click testds in the System Data Sources list, and then click Configure. The ODBC Text Setup dialog box appears.
- Click Options, and then click Define Format. You receive the error that is mentioned in the "Symptoms" section.
- In the Error dialog box, click OK.
- In the Define Text Format dialog box, click Cancel.
- In the ODBC Text Setup dialog box, click Cancel.
- In the ODBC Data Source Administrator dialog box, click OK.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updatesFor more information about the Microsoft ODBC Data Source Administrator tool, visit the following Microsoft Developer Network (MSDN) Web site:
Article ID: 884038 - Last Review: 01/11/2015 06:28:38 - Revision: 6.0
- kbnosurvey kbarchive kbautohotfix kbqfe kbHotfixServer kbcorrupt kbschema kbfix kbbug KB884038