Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 254679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:52:01+00:00 2026-05-11T21:52:01+00:00

I have an SSIS package I am developing. I am attempting to write data

  • 0

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?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:52:01+00:00Added an answer on May 11, 2026 at 9:52 pm

    See this topic on MSDN for information about the Derived Column transformation.

    It doesn’t specifically address what you’re trying to do, but some of the examples imply that you should be able to achieve your objective. Set the derived output column’s type to DT_BOOL and use a one-line version of the code you have above as the Expression (perhaps with a ternary operator?).

    And yes, Access Jet represents True as -1. False = 0, and True is Not False. If you apply a bitwise Not to 0, you get the twos complement version of -1.

    Update: The Jet internal storage of a Boolean is as an Integer (go figure–but that’s what they chose…). As such, Jet Yes/No fields accept zero (0) for False and non-zero (not just -1) for True. See Comments

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 184k
  • Answers 184k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer First day of quarter: FirstDayOfQuarter = CreateDate(year, (quarter-1)*3 + 1,… May 12, 2026 at 4:48 pm
  • Editorial Team
    Editorial Team added an answer CakePHP's CacheHelper currently isn't capable of Routes. CacheHelper::cache(), which is… May 12, 2026 at 4:48 pm
  • Editorial Team
    Editorial Team added an answer add xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" to your <html> tag. then use <xul:element>, e.g.… May 12, 2026 at 4:48 pm

Related Questions

I am preparing for the development of an enterprise-style application for a very small
I have an SSIS package that I've saved under Maintenance Plans on SQL Server
I have an SSIS project where one of the steps involves populating a SQL
I have an XML source in a Microsoft SSIS 2005 package and when I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.