Solved

SSIS explicit data type in xsd

Posted on 2009-07-16
1
633 Views
Last Modified: 2013-11-10
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"?

0
Comment
Question by:acclimate
1 Comment
 
LVL 9

Accepted Solution

by:
Hwkranger earned 500 total points
ID: 24882088
Yes you can.  

What I do though, is I used a "DERIVED COLUMN" or the "CONVERT DATA" tasks.  It's easier than working with the XSD in my opinion.  The XSDs are easily corrupted.  I use hundreds of them, and I find it's easier to manipulate the data afterwards rather than defining it in the XSD.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about achieving the basic levels of HRIS security in the workplace.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question