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

I have a MS SQL imported into SQL Server 2008 from a .bak and
I'm storing some latitudes and longitudes in a MySQL database using Rails 3.0.3. Here
I used ImprovedNamingStrategy in hibernate, to mapping Java field name to MySQL column name.
free shows that My centos system used 4/11 Gb RAM, but I can't pinpoint
Hello I have been working for a while with PHP and MySQL. Now I
How do Igo about achieving the ACID properties for my database - A- Atomicity,
I am learning RoR coming from many years of c# and MSSQL. I have
Possible Duplicate: php warning mysql_fetch_assoc I have a weird problem about my script. It
According to php.net I should use mysql_real_escape_string() and turn off magic quotes , because
Just more a general question I can't seem to find a definite answer on.

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.