Your MySQL instincts now have a T-SQL translation.
What you covered
💡 The Bottom Line, one more time
Square brackets replace backticks, NVARCHAR (with an N'' prefix on
literals) replaces VARCHAR plus a charset clause, a real BIT type replaces
TINYINT(1), and the + operator replaces CONCAT() — just watch
its NULL-propagating behavior. TOP and OFFSET ... FETCH NEXT ... ROWS ONLY
replace LIMIT, IDENTITY plus SCOPE_IDENTITY() replaces
AUTO_INCREMENT plus LAST_INSERT_ID(), and plain @variable
parameters with no DELIMITER ceremony replace MySQL's DECLAREd,
un-prefixed procedure style. Underneath all of that, the real traps are behavioral, not syntactic:
SQL Server's mostly case-insensitive default collation (a relief after MySQL's filesystem-dependent
casing), its lock-based default isolation level (a possible surprise after InnoDB's MVCC-heavy
defaults), its unconditionally strict GROUP BY rule, and a handful of renamed date
functions. None of your relational-design instincts are wrong in SQL Server — normalization,
indexing, and transactional thinking all still apply — the engine just enforces and spells things a
little differently than MySQL does.
What's next
This guide covered the core language and behavior mapping. From here, the natural next steps are:
- T-SQL window functions —
ROW_NUMBER(),RANK(),LAG()/LEAD(), and the fullOVER (PARTITION BY ...)clause are a much bigger, more idiomatic part of everyday T-SQL than the equivalent feature set typically is in MySQL — worth deliberate study rather than picking up by accident. - Query plans and indexing in SQL Server — the graphical execution plan in SQL
Server Management Studio, index tuning, and the query optimizer's behavior are different enough from
MySQL's
EXPLAINand InnoDB's optimizer to deserve their own study. - Certification-adjacent T-SQL topics — common table expressions (CTEs),
MERGE, and error handling withTRY ... CATCHshow up constantly in T-SQL code and in Microsoft's own certification material, even if you never sit the exam. - The full SQL Fundamentals track — worth skimming even as an experienced developer, for the general relational concepts this guide assumed you already had.
More transition guides (SQL Server → Oracle, JavaScript → TypeScript) are on the way — no need to go looking elsewhere.