When casting to a non-unicode textual value (i.e. DT_STR) in SSIS you might often have seen something like the following:
- (DT_STR, 50, 1252) (<expression>)
and wondered what on earth the 1252 was referring to. Well the SSIS documentation on MSDN tells us that that third parameter is the code page to be used for the cast but we may still still left wondering what on earth a code page actually is and why 1252?
The answers are provided by SQL Server MVP Erland Sommarskog (via Tibor Karaszi’s blog) at Code page backgrounder, courtesy of Erland Sommarskog.
Hope that helps.
-Jamie