I'm keen to get a list of the feature limitations or suprises when using Synapse Analytics (a.k.a. Dedicated SQL Pool, used to be known as SQL DW / SQL Data Warehouse) compared to using normal SQL Server. Basically the things that you would expect to be there, but aren't.
I will edit this answer to include new limitations as I find them.
- Unable to use expressions (such as GETDATE() or SUSER_SNAME()) as defaults in tables. Only constants can be used as a default.
- Unable to use expressions (such as GETDATE() or SUSER_SNAME()) directly in INSERT statements. Only constants or variables can be used.
- No triggers - limiting your options for auditing
- No ownership chaining - according to this comment from 2021 this is coming in the future
- No cross-database queries - also apparently a future feature
- No FOR XML/FOR JSON clauses
- No geospatial data types such as geography and geometry
- No support for these data types: hierarchyid, image, text, ntext, sql_variant,xml source
- No EXECUTE AS, including inside CREATE PROC
- No support for cursors (see alternatives)
- IDENTITY: Synapse is implemented as 60 shards, refered to as "distributions". Each distribution increments its identity independently. In effect, distribution 1 has IDENTITY(1,60), 2 has IDENTITY (2, 60), and so on. Which value a new row receives will depend on which distribution it lands on. So a later row may have an identity that is less or greater than an earlier row.
- There is no means to create an offline .BAK or .BACPAC (with data), so your backup options are limited to the 7 days retention Microsoft provide, or creating copies of your database (which will incur storage costs if paused, or storage & compute costs if running). (You could ETL all the data to a normal database and then make a BAK/BACPAC of that).
- Cannot use Table variables - i.e.
DECLARE @MyTable TABLE (A_Column int)will fail. You have to use temp tables instead. source
- Cannot create UDF's
- Cannot start a Procedure from the SSMS GUI, you need to execute code
- Cannot INSERT multiple rows using VALUES. e.g.: this won't work:
INSERT INTO dbo.MyTable (MyField) VALUES ('ABC'), ('DEF')
- This article goes into differences between Dedicated and Serverless pools in Synapse
When creating a table with primary key, SQL server add constraint clause automatically. These DDL code does not compile on Synapse Dedicated SQL, you need to remove the constraint before running the code.
CONSTRAINT [PK_DimCustomer] PRIMARY KEY CLUSTERED ([DimCustomerId])
PRIMARY KEY NONCLUSTERED NOT ENFORCED,
Could not create UDF's
You cannot start a Procedure from the SSMS GUI, you need to execute code