Azure SQL Database ‘sp_executesql’ not supported on this version of SQL Server

When I execute the following the code below on my Azure SQL Database I get the following error:

'sp_executesql' not supported on this version of SQL Server



EXECUTE sp_executesql @ColumnMetadataSQL, @ParmDefinition, @ColumnMetadataOUT=@ColumnMetadata OUTPUT;

I’m not sure why I’m getting this error as 'sp_executesql' is supported on Azure SQL Database

learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-executesql-transact-sql?view=sql-server-ver16

Any thoughts?

Read more here: Source link