Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

why does SSIS explicitly collate statements? Expand / Collapse
Author
Message
Posted Monday, October 28, 2013 8:36 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, August 12, 2014 5:37 AM
Points: 17, Visits: 186
I am using SSIS (2012) to transfer data between two tables. The source and destination table has the same collation (for all columns): SQL_Latin1_General_CP1_CS_AS

However if you look at the statements SSIS produces is uses a collate for all "string" fields

1) select column_name collate SQL_Latin1_General_CP1_CS_AS, ....

2) insert bulk table (column_name datatype collate SQL_Latin1_General_CP1_CS_AS, ....)

Can anyone explain why SSIS does this?
Does SSIS always do this when a collation differs from the SSIS collation?
Can this somehow be avoided? Are there good reasons for avoiding it?
Post #1508918
Posted Wednesday, October 30, 2013 7:20 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Friday, August 29, 2014 7:37 AM
Points: 3,090, Visits: 783
If you are selecting to connect to a table in the OLE DB (or ADO) Source, try use a SQL Command instead and build the SQL yourself without the collate.

Not sure why SSIS is doing this, it might have something to do with the driver.

Thomas


Thomas LeBlanc, MCITP DBA 2005, 2008 & MCDBA 2000
http://thesmilingdba.blogspot.com/
Post #1509758
Posted Wednesday, October 30, 2013 7:37 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, August 12, 2014 5:37 AM
Points: 17, Visits: 186
I am using a SQL command but SSIS changes the statement (I have captured the statement from a trace).
Post #1509780
Posted Wednesday, October 30, 2013 7:40 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Friday, August 29, 2014 7:37 AM
Points: 3,090, Visits: 783
I have never seen that happen, so I am not sure why.

Sorry,
Thomas


Thomas LeBlanc, MCITP DBA 2005, 2008 & MCDBA 2000
http://thesmilingdba.blogspot.com/
Post #1509782
Posted Wednesday, October 30, 2013 7:46 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, August 12, 2014 5:37 AM
Points: 17, Visits: 186
And I need to use a destination table so that would not fix the insert statement.
Post #1509786
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse