r/Database • u/Gaspucci22 • Sep 19 '26
How to convert from microsoft sql to mysql?
I need urgent help. I have a database that i created in Microsoft sql server express, but my professor has problems opening it and request that i convert it in mysql. I'm currently trying to do it but to no avail. I need help please
7
Upvotes
View all comments
Show parent comment
1
u/Straight_Waltz_9530 PostgreSQL Sep 19 '26
Domains and enums are totally different things.
Enum: here are six values it could be as text to the client but are stored more efficiently as numbers.
Domains: take any type and constrain what values it can be, eg. an int that ranges from 1 to 1,000, text that follows this serial number pattern, UUID but only v7.
As far as UUID support, it's not just slightly better in Postgres. It's better in ergonomics, in version support, in supporting functions, etc. And with no apologies, a binary(16) with basic conversion functions and only UUIDv1 as text generation support built in is effectively not supported. I've used it. It can be made to work. It is not true support. It's a barely adequate hack.
Any database given sufficient development lifetime will take on database-specific data organization and access methods. If you can cleanly move from one engine to another, it means you were leaving performance and scalability on the floor, whether it be MySQL's enums, MariaDB's temporal tables, Postgres's range types, SQL Server's .Net integration, or any of the myriad other features out there.
If you see relational engines as trivially interchangeable, you don't know those engines.