Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLXMLBulkLoad problem
Message
From
11/12/2009 01:11:03
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01438528
Message ID:
01438560
Views:
35
To recap:
1. I have tables with character and text type fields, in SQL server dataset, set to NOT allow NULL values and "" as the default.
2. Uploading data from VFP using SQLXMLBulkLoad produced an error when character/memo fields had an empty value.
3. Changing "KeepNulls" and "CheckConstraints" property did not make any difference.

After trial and errors, I found that when "true" is assigned to the "transaction" property this problem does not occur.
Here the code:
loBulkLoad = createobject('SQLXMLBulkLoad.SQLXMLBulkload.4.0')
loBulkLoad.Transaction = .t.
loBulkLoad.Execute(lcSchema, lcData)
>>Thank you Naomi
>>
>You're welcome, let us know what would be your solution.
Previous
Reply
Map
View

Click here to load this message in the networking platform