-- 2. This returns empty result with column "Item"EXEC sp_executesql N'[dbo].[MyProcedure]', N'@bookEntryIds[dbo].[BigIntList] READONLY’, @bookEntryIds
结果为空,因为您忘记了传递参数,它看起来应该像这样:
EXEC sp_executesql N'[dbo].[MyProcedure] @bookEntryIds = @bookEntryIds', N'@bookEntryIds [dbo].[BigIntList] READONLY', @bookEntryIds



