Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 OPENROWSET help needed

Author  Topic 

aakcse
Aged Yak Warrior

570 Posts

Posted - 2010-03-25 : 14:48:23
SELECT a.*
FROM OPENROWSET (BULK 'c:\Projects\Cleaned.txt',
FORMATFILE = 'c:\Projects\format.txt',
MAXERRORS = 999999999,
ERRORFILE = 'c:\Projects\error.txt')
AS a

I am getting error for this, can any one help

I have a file cleaned.txt, I have created format.txt(blank file)

Trying to run the above command.

It is giving syntax error

Msg 9435, Level 16, State 48, Line 2
XML parsing: line 1, character 0, one root element
   

- Advertisement -