Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLXMLBulkLoad eats CR in CRLF
Message
From
07/02/2010 10:09:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
01447843
Message ID:
01447980
Views:
37
>I'm using Doug Hennig's code to import large .dbf files into SQL Server 2008 and have discovered that all chr(13) are removed when importing with SQLXMLBulkLoad.
>
>Using:
>cursortoxml(alias(),lcData,1,512+8,0,lcSchema)
>
>I have verified that the XML file contains the CR+LF
>
>The memo fields are wrapped in CDATA in the XML file.
>
>Any ideas?

'Large' and 'XML' togwether doesn't sound right at all. I would use SqlBulkCopy class instead.

http://www.foxite.com/archives/0000207817.htm
http://www.fox4um.com/topic/1214/sqlbulkcopy/

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform