Menu

SQL Server Reference

Browse SQL Server data types and built-in functions by category. For date and time tasks such as adding intervals, truncating timestamps, counting date boundaries, or handling time zones, start with the SQL Server date and time function reference. For JSON validation and query patterns, see the SQL Server JSON function guide. For an administration example, see how to list tables in SQL Server. To troubleshoot common server message numbers, use the SQL Server error guide.

To reformat a T-SQL query in your browser, use the SQL formatter. SQL Server T-SQL is selected for you; the query stays in your browser and formatting does not execute or validate it.

For database catalog queries across MySQL, MariaDB, PostgreSQL, SQL Server, SQLite, and Oracle, see List Databases in SQL.

For commands and catalog views that list regular views across these engines, see List Views in SQL.