Pass Default value to Table Valued parameter - SQL Server

后端 未结 2 2251
春和景丽
春和景丽 2021-02-19 06:22

I am using a table-valued parameter in one our stored procedures. Here is the syntax I used:

@districtlist NumericList readonly

(NumericL

2条回答
  •  星月不相逢
    2021-02-19 06:32

    You can pass the TVP as default:

    EXEC dbo.Test_TVP @my_table = default
    

    Which is the equivalent of an empty table.

提交回复
热议问题