ODBC and Migration

ID #1062

What is and what is not imported by the SQLyog Migration Tool?

 

The SQLyog Migration Tool as of SQLyog 4.1 and later will import

DATA

and it will - of course - create the type definitions for the table columns in the process. Note that the ODBC-driver will 'propose' a transformation of the datatype when importing a datatype from the ODBC-database if the corresponding MySQL datatype is not completely identical. For instance a MS SQL Server varchar-type is too long to fit into a MySQL 4.x varchar. It must be transformed to a MySQL text or blob type. However the SQLyog Migration Tool gives you the option to 'override' the 'proposal' of the ODBC-driver. So for instance: if the driver says blob you can choose mediumtext instead if you like.

METADATA that is

  • (ordinary) indexes, including – of course – unique indexes
  • primary keys
  • foreign keys
Note that to import Foreign Keys you must use a Storage Engine with MySQL that supports this. That does with MySQL versions up to 5.0 in practice mean that you must use the InnoDB storage engine


It does not attempt to import

OBJECTS such as

  • Stored Procedures and Functions
  • Triggers
  • Views
No matter if the ODBC source and the MySQL version support these features or not.

Also note that the ODBC-import Tool as of SQLyog version 4.0 and before only imports DATA themselves.

 

Tags: -

Related entries:

Last update: 2005-11-11 15:03
Author: Peter Laursen
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 4 out of 5 (1 Votes )

completely useless 1 2 3 4 5 most valuable

You can comment on this entry