,

T-SQL in Microsoft Fabric

Posted by

T-SQL surface area

  • In Microsoft Fabric, you can create, change, and delete tables, and add, change, or remove data, but only in the Warehouse part, not in the SQL analytics part of the Lakehouse.
  • However, you can still make your own views, functions, and procedures using T-SQL with the tables in the SQL analytics part of the Lakehouse.

T-SQL Limitations in Microsoft Fabric

At this time, the following list of commands is NOT currently supported. 

  • ALTER TABLE ADD/ALTER/DROP COLUMN
  • BULK LOAD
  • CREATE ROLE
  • CREATE USER
  • Hints
  • Identity Columns
  • Manually created multi-column stats
  • MATERIALIZED VIEWS
  • MERGE
  • OPENROWSET
  • PREDICT
  • Queries targeting system and user tables
  • Recursive queries
  • Result Set Caching
  • Schema and Table names can’t contain / or \
  • SELECT – FOR
  • SET ROWCOUNT
  • SET TRANSACTION ISOLATION LEVEL
  • sp_showspaceused
  • Temp Tables
  • Triggers
  • TRUNCATE

Data types in Warehouse

Warehouse supports a subset of T-SQL data types:

CategorySupported data types
Exact numericsbit
bigint
int
smallint
decimal
numeric
Approximate numericsfloat
real
Date and timedate
datetime2
time
Character stringschar
varchar
Binary stringsvarbinary
uniqueidentifer

Unsupported data types

Unsupported data typeAlternatives available
money and smallmoneyUse decimal, however note that it can’t store the monetary unit.
datetime and smalldatetimeUse datetime2.
nchar and nvarcharUse char and varchar respectively, as there’s no similar unicode data type in Parquet.
text and ntextUse varchar.
imageUse varbinary.
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x