A client has forced me to migrate a MySQL database to MSSQL. Using PHPMyAdmin here is a list of things I had to do in order to get the data over:
- ‘SQL compatibility mode’ to ‘MSSQL’
- Uncheck ‘Add AUTO_INCREMENT value’, ‘Enclose table and field names with backquotes’, ‘Complete inserts’, ‘Extended inserts’
- Remove all occurrances of ‘unsigned’
- Replace ‘id int(10)’ with ‘id int(10) IDENTITY (1,1) PRIMARY KEY CLUSTERED
- Replace all ticks (`) with quotes (”)
- Remove all PRIMARY KEY lines
- Remove all KEY lines
- Remove all ENUM data types
- Remove lengths from all int types (int,smallint,tinyint)
- Replace date with datetime
- Replace tinytext with text
- Remove all ‘\r\n’
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment