Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: ✅ SQL analytics endpoint and Warehouse in Microsoft Fabric
This article covers the T-SQL language syntax capabilities of Microsoft Fabric, when querying the SQL analytics endpoint or Warehouse.
For SQL database in Fabric, see Limitations in SQL database (preview).
Note
For more information on upcoming feature development for Fabric Data Warehouse, see the Fabric Data Warehouse release plan.
T-SQL surface area
Fabric Data Warehouse supports T-SQL tables, views, stored procedures, functions, permissions, and security roles.
- For more about
CREATE/DROPTABLEsupport in Warehouse, see Tables. - For more about supported data types in Warehouse, see Data types.
- You can also create T-SQL views, functions, and procedures on top of the tables that reference your Delta Lake data in the SQL analytics endpoint of the Lakehouse.
- Creating, altering, and dropping tables, and insert, update, and delete are only supported in Warehouse in Microsoft Fabric, not in the SQL analytics endpoint of the Lakehouse.
- Fabric Warehouse and SQL analytics endpoint both support standard, sequential, and nested common table expressions (CTEs). While CTEs are generally available in Microsoft Fabric, nested CTEs are currently a preview feature. For more information, see Nested Common Table Expression (CTE) in Fabric data warehousing (Transact-SQL).
- TRUNCATE TABLE is supported in Warehouse.
- To change the name of the column in a user table in Warehouse, use the
sp_renamestored procedure. - A subset of query and join hints are supported in Warehouse. For more information, see Hints (Transact-SQL).
- Session-scoped distributed #temp tables are supported in Warehouse in Microsoft Fabric.
- Currently, only the following subset of
ALTER TABLEoperations in Warehouse in Microsoft Fabric are supported:- You can
ADDnullable columns of supported column data types. DROP COLUMNis supported.ADDorDROPPRIMARY KEY,UNIQUE, andFOREIGN_KEYcolumn constraints are supported, but only if theNOT ENFORCEDoption has been specified. All otherALTER TABLEoperations are blocked. There are limitations with adding table constraints or columns when using Source Control with Warehouse.ALTERdistributed temporary tables are supported.- Supported
ALTER TABLEstatements can be executed inside an explicit user-defined transaction in Warehouse in Microsoft Fabric.
- You can
MERGEsyntax is supported and is a generally available feature. For more information, see MERGE T-SQL syntax.- AI functions (preview) enable advanced text processing without leaving your warehouse.
Limitations
At this time, the following list of commands is NOT currently supported. Don't try to use these commands. Even though they might appear to succeed, they could cause issues to your warehouse.
BULK LOADCREATE USERFOR JSONmust be the last operator in the query, and so is not allowed inside subqueries- Manually created multi-column stats
- Materialized views
PREDICT- Queries targeting system and user tables
- Recursive queries
- Schema and table names can't contain
/or\ SELECT-FOR XMLSET ROWCOUNTSET TRANSACTION ISOLATION LEVELsp_showspaceused- Synonyms
- Triggers