all groups > sql server dts > july 2005 >
You're in the

sql server dts

group:

Parsing a text file


Parsing a text file kayda
7/28/2005 7:36:29 AM
sql server dts: Hi:

I have setup DSNs before to text files with some success. I am having
problems with a file I have to parse to pump into SQL Server via DTS.
It appears to be fixed length (what does the 'length' refer to
normally-the text plus the spaces to get to the first character in the
next column?). I keep getting errors saying there is a problem with the
schema .ini file, or it just recognizes the file as one field. I've
tried using tab delimited as well but no luck.

It's perhaps hard to describe this-I could send the text file along if
someone would like to have a look. If there are any other ways other
than ODBC of parsing a difficult text file please let me know.

Thanks,
Kayda
Re: Parsing a text file Scot T Brennecke
7/28/2005 9:51:27 AM
You can send the file to me at the following address (remove spaces and use punctuation as
indicated):
S c o t B at M V P s dot o r g

[quoted text, click to view]

Re: Parsing a text file Scot T Brennecke
7/28/2005 10:41:32 AM
For the benefit of others, here's what I found in response to the file sent:
* Specify Text File as data source
* Choose "Delimited" file format, ANSI, {LF}
* Check first row has column names
* Click [Next]
* Specify Other column delimiter and type a single space in the edit box
* Data is now correctly parsable by your columns.

[quoted text, click to view]

AddThis Social Bookmark Button