MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 21st, 2000, 11:14 AM
Krista Krista is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 1 Krista User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello all,
How difficult would it be to take a MS-SQL database and turn it into a MySQL database. can anyone tell me the exact steps of how to do this, or point me to a site that does?

Krista

Reply With Quote
  #2  
Old April 21st, 2000, 05:07 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Central Florida, USA
Posts: 2,306 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 6 h 42 m 51 sec
Reputation Power: 60
It depends on just how complicated your database is, especially if it uses stored procedures, triggers, Foreign Keys and transactions.

Stored procedures wouldn't be that hard to turn back into regular SQL, but MySQL has NO support for triggers and transactions right now, so you would have to come up with another programming method to deal with these.

If your database is fairly simple, though, it's possible, but it would take a bit of work. You would use the MSSQL Enterprise manager to generate scripts for all objects in the database, and then edit the scripts to make them compliant with MySQL, and then run the scripts in MySQL. For example the Money datatype doesn't exist in MySQL, so you would have to change Money columns to be Decimal columns with two decimals, etc...

THEN... after you have created your tables and keys in MySQL to be as close as possible to the ones in MSSQL, you would export your MSSQL data in a Comma-Delimited format and import it into MySQL.

If you don't understand half the terms I've used here, you will have quite a learning curve, but if you have a fair SQL knowledge, you will be able to figure it out. You will have to take the time to read the MySQl documentation, though.

It wouldn't surprise me if someone has written a procedure to do at least some of this automatically. (try looking at www.weberdev.com) Also, a great utility for MySQL is phpMyAdmin (at www.phpwizard.net), which provides MySQL with a web-based equivalent of the MSSQL Enterprise Manager.

Please feel free to ask some more specific questions if you decide to proceed.
Comments on this post
pabloj agrees!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Port from MS-SQL to MySQL?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap