Link to home
Start Free TrialLog in
Avatar of acclimate
acclimate

asked on

SSIS explicit data type in xsd

Hi Experts,

Is it possible to explicitly name the data type in the xsd file to sql server data types? I have an xml source that I am putting through a lookup in SSIS. The lookup is reporting that the data type don't match with the table. The attribute in the xml file is a url with data type string, I've changed the table column data type to varchar(max), nvarchar(max), and text with no effect.

I'm now trying to set the data type in the xsd file by using the namespace

xmlns:dt="urn:schemas-microsoft-com:xml:datatypes"

<xs:element name="ItemURL" type="xs:string" dt:type="varchar" minOccurs="0"/>

Can I do something like dt:type="varchar"?

ASKER CERTIFIED SOLUTION
Avatar of Hwkranger
Hwkranger
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial