I am seeing a strange behavior in the data that is being inserted into the database. In the table say "table1" when I am inserting a record, for which one of the columns contains value as below:
?<?xml version="1.0" encoding="utf-8" ?>
- <OrderPayLoad xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<OrderID>182806333</OrderID>
<CreatedDateTime>2011-11-27T22:59:37.56</CreatedDateTime>
<MarketCode>XXX</MarketCode>
<AccountNumber>0</AccountNumber>
<MobileNumber>0</MobileNumber>
<OrderTotal>0</OrderTotal>
<OrderTaxTotal>0</OrderTaxTotal>
<PaymentMethod>NCC</PaymentMethod>
<ReceiptMethod>P</ReceiptMethod>
<ShippingInfo>
<FreightTypeID>1</FreightTypeID>
<ShippingAddressType>STANDARD</ShippingAddressType>
</ShippingInfo>
<BillingInfo>
<BillToZip>-</BillToZip>
</BillingInfo>
<OrderDetails />
<PaymentCard />
<OrderRoutingID>2</OrderRoutingID>
</OrderPayLoad>
Until the point I reach dbTransaction.Commit() I saw the above XML data in the column. When I check the database and pull up the same record, I see an extra character getting prefixed to the XML.
Any idea why this is occurring?
This problem got fixed automatically, tried best to reproduce it. Not able to find the actual root cause.