I have followed this process:
- Open notepad and enter some text: "Hello World"
- Save the ansi file as: c:\HelloWorld.txt
I then run the following query:
select * from openrowset(bulk 'C:\HelloWorld.txt',single_clob) as test
The text appears in a column called: BulkColumn
.
I then do this:
- Open notepad and enter some text: "Hello World"
- Save the unicode file as: c:\HelloWorld.txt
I then run the following query:
select * from openrowset(bulk N'C:\HelloWorld.txt',single_nclob) as test
The error I get is:
SINGLE_NCLOB requires a UNICODE (widechar) input file. The file specified is not Unicode.
Why is this?