You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adrian Ehrsam edited this page Aug 19, 2020
·
1 revision
Multi-value parameters
To use multiple values for a parameter, use a Sql Server User Defined Table Type
for the parameter.
-- Create the data typeCREATETYPEdbo.IdNameType AS TABLE
(
Id bigint,
Name nvarchar(1000),
PRIMARY KEY (Id)
)
GO
-- Create SP
CREATE PROCEDURE dbo.spTestBackend
@SomeId int,
@Ids dbo.IdNameType readonly
ASBEGIN-- ...
END