用户定义的 table 类型的数据类型无效

Invalid Datatype for user defined table type

我声明了以下用户定义的 table 类型

CREATE TYPE [component].[programmeList] AS TABLE
(
    ProgrammeId [bigint] NOT NULL
)
GO

现在当我将它作为参数传递给 SP

SET QUOTED_IDENTIFIER ON;
SET ANSI_NULLS ON;
GO
CREATE PROCEDURE [component].[Get_Live_Examination_Status]
    @AssessmentPeriodId INT,
    @ResponseFormatType INT,
    @ProgrammeList AS component.programmeList 
AS
BEGIN

我不断收到以下错误

Parameter or variable has invalid datatype

您必须将此参数传递为:

@ProgrammeList component.programmeList READONLY