SQL translator › SQLite → T-SQL

SQLite to SQL Server translator

SQLite is loose. SQL Server wants types, TOP, and CONCAT.

Usual swaps

SQLiteSQL Server
LIMITTOP / OFFSET FETCH
IFNULLISNULL
||CONCAT
date('now')CAST(GETDATE() AS date)
date(d, '+7 day')DATEADD(day, 7, d)
AUTOINCREMENTIDENTITY
INTEGER PRIMARY KEYint IDENTITY PRIMARY KEY

SQLite affinity is not a type. Pick int, decimal, nvarchar when you land on SQL Server.

Then write it on a ticket

Monday is free. A colleague asks, you type, we mark it.

Clock in free