The following code works with PC-format text files but not with UNIX-format text files.
BULK INSERT gltran.dbo.pOneField
FROM 'e:\acctg\SourceFiles\dailyfeed042.txt'
WITH
(
ROWTERMINATOR = '\n'
)
I know I can convert my UNIX files to PC format with freeware (that's what we do currently), but we have dozens of these to do every day so it would speed things considerably if SQL could read UNIX files - after all, Word and Excel and WordPad and TextPad have no problem reading UNIX-format text files. So is it as simple as using a different value for ROWTERMINATOR in the WITH clause?
BULK INSERT gltran.dbo.pOneField
FROM 'e:\acctg\SourceFiles\dailyfeed042.txt'
WITH
(
ROWTERMINATOR = '\n'
)
I know I can convert my UNIX files to PC format with freeware (that's what we do currently), but we have dozens of these to do every day so it would speed things considerably if SQL could read UNIX files - after all, Word and Excel and WordPad and TextPad have no problem reading UNIX-format text files. So is it as simple as using a different value for ROWTERMINATOR in the WITH clause?