I’m new to SQL Server, and has a need to convert a MySQL CREATE statement similar to following to SQL Server. It contains ‘NOT NULL’ column, and some other types. Is it possible for someone to provide this? There is very few tools to convert from MySQL -> SQL Server though there are several to do it the other way around.
CREATE TABLE a
( a VARCHAR(100) NOT NULL
, b VARCHAR(150)
, c INT
, d DOUBLE
, e BIGINT
, f SMALLINT
) ;
SQL Server supports NOT NULL (as does every SQL implementation I know of)
So something like:
ought to work just fine.
Note that SQL Server does not offer a DOUBLE data type, but that can be done with other data types, such as decimal if you really need to store that much data.