I have an SSIS package I am developing. I am attempting to write data from SQL Server 2005 to MS Access 2007.
I am pretty stumped on how to convert a SQL char(1) field to an Access Yes/No field.
From the information I have gathered, the SQL equivalent of an Access Yes/No field would be a bit field, with values of either 0 or 1.
My SQL char(1) field (which is my source field), contains "N" or "Y". I do not have the option of using a bit field, hence my dilemma. I have tried casting to booleans and integers and haven't had any success.
In my Data flow task, I have tried to create regular expressions to no avail, and derived columns, data transformations, etc to no avail. I am stuck.
I have seen some examples on building conditional statements that loop through the .Row collections. This seems a little overboard, to have to write conditions for NULL checks or string values.
In the MSDN link SSIS Equivalent to DTS Transform Data Task Properties ...it has some code somewhat similar to this:
If DTSSource("Col010") = "Y" Then
DTSDestination("X") = -1
Else
DTSDestination("X") = 0
End If
Should I be able to manipulate the row values directly, through code? Since the source field is a Yes/No type, does it accept integer values? negative values? Yes is actually "-1" in MS access, and I guess this is confusing me.
It seems that a regular expression would fix this problem but I am unsure how to use that too.
Is there something I am overlooking? There must be a way to convert "CHAR" to "YES/NO".
** I know it is easy to point out here that good ol' 2000 SQL DTS could handle this without any problem, by default, right out of the box, installed by a monkey. I am finding myself spending WAAAAY too much time on the very small quirks of SSIS, such as this Yes/No field problem.
I am unable to find any documentation on the subject of SSIS and MS Access Yes/No fields. MSDN will not allow me to post a question either. I know, poor me :(
Has anyone ever come across this quirk with SSIS and MS Access?