Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

BULK INSERT - codepage and formatfile - problem

$
0
0
Hello,I have a problem and I'm stuck. I have to import file .html to table. [code="sql"]create table dbo.test( Full_Row nvarchar(MAX) COLLATE Polish_CS_AS) BULK INSERT dbo.test FROM 'C:\Temp\html_testy\EpuOrzeczenie__15046678.html' WITH (CODEPAGE = 1250, FORMATFILE = 'C:\Temp\myTestFormatFiles.FMT' ) SELECT * FROM dbo.test[/code].Fmt file:[code="other"]10.011 SQLCHAR 0 0 "\r" 1 Full_Row Polish_CS_AS[/code]I do this like that because I would like to use this tools to parse html text. [url]http://www.sqlservercentral.com/articles/HTML/88605/[/url]This will be a procedure so I can't convert codepage in for example "notepad++" this .html file.The results:[quote]... SÄ…d Rejonowy Lublin-ZachĂłd w Lublinie, stwierdza, ĹĽe niniejszy tytuĹ‚...[/quote]But should be:[quote]... Sąd Rejonowy Lublin-Zachód w Lublinie, stwierdza, iż niniejszy tytuł‚....[/quote]Someone have some solution for this problem?

Viewing all articles
Browse latest Browse all 3145

Trending Articles