如何将用户定义的 table 类型值传递给 SQL Server Management Studio 中执行过程的值字段?

How to pass User defined table type values to Value field for the Execute Procedure in SQL Server Management Studio?

我有一些值类型作为存储过程的参数,我不确定如何将它们的值输入到 SSMS 的值字段中。 谁能给我提供样品?是 JSON 还是 Name/Value 对?

需要通过查询来执行

DECLARE @FromFieldDefinitions DFFromFieldDefinition
DECLARE @FieldDefitions DFFieldDefinition
DECLARE @ListParameters DFFieldDefinition
DECLARE @DataBindingParameters DFFieldDefinition

   

INSERT INTO @FromFieldDefinitions values (1, <value1..>, <value2..>)
INSERT INTO @FromFieldDefinitions values (2, <value1..>, <value2..>)
INSERT INTO @FromFieldDefinitions values (3, <value1..>, <value2..>)
INSERT INTO @FromFieldDefinitions values (4, <value1..>, <value2..>)

INSERT INTO @FieldDefitions values (1, <value1..>, <value2..>)
INSERT INTO @FieldDefitions values (2, <value1..>, <value2..>)
INSERT INTO @FieldDefitions values (3, <value1..>, <value2..>)
INSERT INTO @FieldDefitions values (4, <value1..>, <value2..>)

INSERT INTO @ListParameters values (1, <value1..>, <value2..>)
INSERT INTO @ListParameters values (2, <value1..>, <value2..>)
INSERT INTO @ListParameters values (3, <value1..>, <value2..>)
INSERT INTO @ListParameters values (4, <value1..>, <value2..>)


INSERT INTO @DataBindingParameters values (1, <value1..>, <value2..>)
INSERT INTO @DataBindingParameters values (2, <value1..>, <value2..>)
INSERT INTO @DataBindingParameters values (3, <value1..>, <value2..>)
INSERT INTO @DataBindingParameters values (4, <value1..>, <value2..>)


EXEC Yoursp <other_params>,@FromFieldDefinitions,@FieldDefitions,@ListParameters,@DataBindingParameters,<other_params>