The lead developer at Mosaic, Brighton with a passion for web application development and motorcycles.
Recently I produced a website for hosting on a Linux box running with PHP5 and MySQL5. Well it now needs to move over to a Windows 2003 server with MS SQL as the DB and IIS as opposed to Apache.
Execute the above
Don’t forget to change all the references above to your correct database server settings.
Please note I have had some trouble with SQL Server not accepting 0000-00-00 00:00:00 in datetime fields set to not null in MySQL – set your datetime fields to accept null before exporting.
Also primary keys and auto_increment column attributes are not brought across either. So you will need to go into Server Management and manually re-add your auto_increment (Identity in SQL Server speak) and the primary key. It can also be done programmatically like this:
Because SQL Server doesn’t allow you to alter a pre-existing column to be an Identity (auto_increment) column you have to:
Wow! What a pain.