SQLines tools can help you convert database schema (DDL), views, queries and SQL scripts from Microsoft SQL Server (MSSQL, MS SQL), Azure SQL Database, Azure Synapse to Snowflake.
Databases:
Converting SQL language elements:
SQL Server | Snowflake | |||
1 | string + string2 + … | String concatenation | CONCAT(string, string2, …) |
Datetime data types:
SQL Server | Snowflake | |||
1 | DATETIME2(p) | Datetime with fraction, 0 <= p <= 7, default is 7 | TIMESTAMP(p) | 0 <= p <= 9, default is 9 |
Datetime functions:
SQL Server | Snowflake | |||
1 | GETDATE() | Get the current date and time | GETDATE() | CURRENT_TIMESTAMP |