If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Problem during migration from MS SQL to MySQL

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-09, 08:22
ranjeet_db ranjeet_db is offline
Registered User
 
Join Date: Jun 2009
Posts: 1
Problem during migration from MS SQL to MySQL

hi all, I am trying to migrate from MSSQL Server 2000 to MySQL 5.0.
While migrating two tables named MaxCount and National Holidays of collegesnaps database , I am facing trouble during 5th step.


The message log is as below.



Initializing JDBC driver ...
Driver class MySQL JDBC Driver 5.0
Opening connection ...
Connection jdbc:jtds:sqlserver://127.0.0.1;user=sa;password=sa;namedPipe=true

Execute script header commands.
-- ----------------------------------------------------------------------
-- MySQL GRT Application
-- SQL Script
-- ----------------------------------------------------------------------

SET FOREIGN_KEY_CHECKS = 0
An error occured while executing the SQL statement.
Line 6: Incorrect syntax near '='.
Creating schema collegesnaps_dbo ...
CREATE DATABASE IF NOT EXISTS collegesnapsmysql CHARACTER SET latin1 COLLATE latin1_swedish_ci
An error occured while executing the SQL statement.
Incorrect syntax near the keyword 'IF'.
Creating tables ...

Creating table MaxCount ...
DROP TABLE IF EXISTS collegesnapsmysql.MaxCount
An error occured while executing the SQL statement.
Incorrect syntax near the keyword 'IF'.

Creating table NationalHolidays ...
DROP TABLE IF EXISTS collegesnapsmysql.NationalHolidays
An error occured while executing the SQL statement.
Incorrect syntax near the keyword 'IF'.
Creating views ...
Creating procedures ...

Execute script footer commands.
SET FOREIGN_KEY_CHECKS = 1
An error occured while executing the SQL statement.
Line 1: Incorrect syntax near '='.


Please tell me where I have gone wrong and how to correct it .
Reply With Quote
  #2 (permalink)  
Old 06-30-09, 07:25
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 8,769
there is also the MySQL migration tool kit 9available as part of the MySQL GUI tools
.... just a thought
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On