Hello,
I extracted xml using "for xml" clause from Production.ProductCategory table in AdventureWorks.
The ModifiedDate is extracted as "
1998-06-01T00:00:00".
When I try to load this XML (using BulkLoad) into another sql server instance, I get "
Invalid character value for cast specification" error.
My xsd schema looks like this:
Code:
<xs:element name="ModifiedDate" sql:field="ModifiedDate" type="xs:dateTime"/>
What works as the date value:
6/1/8
What else does not work as date value:
1998-06-01T00:00:00Z
1998-06-01T00:00:00.000Z
I would appreciate any pointers.
Regards.
Ash