📜  消息 8164,级别 16,状态 1,过程 getSalaryMonth,第 31 行 [批处理开始第 13 行] 不能嵌套 INSERT EXEC 语句. - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:06.784000             🧑  作者: Mango

代码示例2
DECLARE @StudentGrades TABLE (
    [StudentID]        INT,
    [StudentName]      VARCHAR(100),
    [Grade]            DECIMAL(4, 1)
)

INSERT INTO @StudentGrades ( [StudentID], [StudentName], [Grade] )
EXECUTE [dbo].[usp_GetStudentGrades] 1
GO