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

  • SEARCH
  • Home
  • 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 1087409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:56:08+00:00 2026-05-16T22:56:08+00:00

I used the MySQL Migration Toolkit to migrate a SQL Server 2008 database to

  • 0

I used the MySQL Migration Toolkit to migrate a SQL Server 2008 database to MySQL. However, it converted all my bit types to tinyint. My data model doesn’t like this, because I have a bunch of expressions testing for true/false, and not 0-255.

Is there a way to tell the Toolkit to convert these different, or some SQL I can run on the new database to convert?

  • 1 1 Answer
  • 0 Views
  • 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-16T22:56:09+00:00Added an answer on May 16, 2026 at 10:56 pm

    In MySQL prior to 5.0.5 Bit didn’t really exist so the Migration Toolkit probably hasn’t updated yet but you can use a TINYINT(1) instead as per this quote from the mysql website:

    “As of MySQL 5.0.3, a BIT data type is available for storing bit-field values. (Before 5.0.3, MySQL interprets BIT as TINYINT(1).) In MySQL 5.0.3, BIT is supported only for MyISAM. MySQL 5.0.5 extends BIT support to MEMORY, InnoDB, BDB, and NDBCLUSTER.”

    In order to convert you can use ALTER TABLE:

    ALTER TABLE MODIFY TINYINT(1);

    Or if you want to use the new BIT type you could sub that in there as well but since it is somewhat new I think that we’ll continue to have some problems with the BIT type for a, well, bit.

    There isn’t really a great way to do this to all columns though, I usually use sed or perl -pi to make the modifications in my .sql file before I import.

    Hope that helps!

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

Sidebar

Related Questions

MySQL is awesome! I am currently involved in a major server migration and previously,
I have an open source Java database migration tool ( http://www.liquibase.org ) which I
i remember in my previous job, i needed to do data migration. in that
Now that MySQL is in Oracle's hands, do you think it's a good idea
I'm migrating a old (circa 2001) PHP 3 app to a new PHP5 server.
Having a major hair-pulling issue with extremely slow inserts from Delphi 2010 to a
I am wondering how to get a process run at the command line to
Where does Rails store data created by saving activerecord objects during tests? I thought
I have worked within a web development company where we had our local machines,
this is a very silly question I think: I just removed a table named

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.