Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Data Warehousing
»
Integration Services
»
SSIS SQL 2012 OLEDB Source defaults all Date...
SSIS SQL 2012 OLEDB Source defaults all Date columns to DT_WSTR
Rate Topic
Display Mode
Topic Options
Author
Message
Daniel Forrester 123
Daniel Forrester 123
Posted Wednesday, December 12, 2012 8:47 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, March 04, 2013 6:23 AM
Points: 261,
Visits: 167
Hi,
I have a data flow task that moves date from one SQL 2012 Database to another SQL 2012 database using an OLEDB source. I have a problem that all columns of type Date are being mapped to the DT_WSTR datatype in SSIS.
I have found the following which is quite interesting. I have checked the default mapping in the MSSQLToSSIS10.xml file and the Date datatype is mapped to DT_DBDATE as I would expect.
http://www.simple-talk.com/sql/ssis/working-with-ssis-data-types/
Has anybody else encountered this or have any ideas?
Regards
Daniel
Post #1395714
Koen Verbeeck
Koen Verbeeck
Posted Thursday, December 13, 2012 3:36 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Yesterday @ 2:11 AM
Points: 9,378,
Visits: 6,473
What if you change the datatype of the output column in the advanced editor? Does that work?
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1396089
Daniel Forrester 123
Daniel Forrester 123
Posted Thursday, December 13, 2012 8:00 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, March 04, 2013 6:23 AM
Points: 261,
Visits: 167
Hi,
Using the advanced editor does work but I have quite few packages with this problem.
I'm pretty sure the problem is related to the MSSQLToSSIS10.XML mapping file but nothing I seem to do affects the way SSIS maps the columns. I think I am missing something here.
However I have found that changing the OLEDB provider for my source connections from 'Microsoft OLE DB Provider for SQL Server' to 'SQL Server Native Client 11.0' fixes the problems as SSIS maps the columns to the right data types.
The problem is not fixed but the work arround isn't too bad.
Thanks
Daniel
Post #1396205
Koen Verbeeck
Koen Verbeeck
Posted Thursday, December 13, 2012 1:20 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Yesterday @ 2:11 AM
Points: 9,378,
Visits: 6,473
Daniel Forrester 123 (12/13/2012)
Hi,
Using the advanced editor does work but I have quite few packages with this problem.
I'm pretty sure the problem is related to the MSSQLToSSIS10.XML mapping file but nothing I seem to do affects the way SSIS maps the columns. I think I am missing something here.
However I have found that changing the OLEDB provider for my source connections from 'Microsoft OLE DB Provider for SQL Server' to 'SQL Server Native Client 11.0' fixes the problems as SSIS maps the columns to the right data types.
The problem is not fixed but the work arround isn't too bad.
Thanks
Daniel
Ah yes, it is recommended to use the native client instead of the MS OLE DB provider for SQL Server. This is one of those reasons :)
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1396370
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.