Table-Valued Parameters replacement in azure sql data warehouse

Ping Li 1 Reputation point Microsoft Employee
2021-11-24T08:33:09.347+00:00

Hi team,

We are migrating data from Sql server to Azure data warehouse. We have stored procedures in Sql server which accepts table-valued parameters. But Azure data warehouse doesn't support to create the table-valued parameters. May I know if we have other option to create table-valued parameters or similar in Azure data warehouse?

152130-image.png

Many thanks,
Ping

Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
210 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,395 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 77,751 Reputation points Microsoft Employee
    2021-11-26T04:10:05.903+00:00

    Hello @Ping Li ,

    Thanks for the question and using MS Q&A platform.

    Yes, Table-Valued Parameters is not supported in Azure Synapse Analytics.

    I would suggest you to vote up an idea submitted by another Azure customer.

    Add support for the table value constructor

    All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

    In Azure Synapse Analytics, CREATE FUNCTION can return a table by using the syntax for inline table-valued functions (preview) or it can return a single value by using the syntax for scalar functions. Use this statement to create a reusable routine that can be used in these ways:

    • In Transact-SQL statements such as SELECT
    • In applications calling the function
    • In the definition of another user-defined function
    • To define a CHECK constraint on a column
    • To replace a stored procedure
    • Use an inline function as a filter predicate for a security policy

    For more details, refer to CREATE FUNCTION (Azure Synapse Analytics).

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators