all groups > sql server dts > may 2007 >
You're in the

sql server dts

group:

Exporting to text files


Exporting to text files jim
5/30/2007 11:36:01 AM
sql server dts:
I have a tab-delimited text file (.dat file) created via sql server that I'm
attempting to parse in visual basic 6.0. I have tried Random, Sequential and
Binary file access. All to no avail. Finally, I had to parse the file by
retrieving the position of each tab in the file. That is, read a line and
w/in that line get the tab position of each tab to break up each column or
field.

I wondering if text file is the issue because parsing this same text file w/
another programming language had the same result.


any help is appreciated.

jim
Re: Exporting to text files Orwell
5/31/2007 1:56:07 PM
[quoted text, click to view]

Check the "type" of file. Sometimes, SQL Server generates a UNICODE
file that makes programs not recognize the delimiters. Open the file
in Notepad, so a "Save As..." and see what the "Encoding" is. If it's
"Unicode," change it to "ANSI", save the file, and try the parsing
again.
Re: Exporting to text files jim
6/3/2007 9:55:01 PM
Hello Orwell,

I apologize for the late response. I greatly appreciate your help. I will
definitely give what you suggested a shot! Thx again!

jim

[quoted text, click to view]
AddThis Social Bookmark Button