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 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

Until recently, I've used MySQL for all my database needs in all my server
Is SQL case sensitive? I've used MySQL and SQL Server which both seem to
I did a succesful migration from MySql to Sql Server using the migration tool.
I used MySQL Workbench to generate a database and now I inserted it into
I'm moving DB from MySQL (used ODBC) to MS SQL and I want to
MySQL is awesome! I am currently involved in a major server migration and previously,
I used to use mysql, and in mysql database hold tables, but these concepts
I'm using MS SQL for a project, but have always used MySql in the
I have a MS SQL imported into SQL Server 2008 from a .bak and
LIKE operator in MySql is used to find rows that contain our query text,

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.