Stored procedure returns int instead of result set

后端 未结 17 2068
说谎
说谎 2020-12-03 13:02

I have a stored procedure that contains dynamic select. Something like this:

ALTER PROCEDURE [dbo].[usp_GetTestRecords] 
    --@p1 int = 0, 
    --@p2 int =          


        
17条回答
  •  情话喂你
    2020-12-03 14:02

    I got the same problem, and found solution here

    1. Move to your .edmx
    2. At Model Browser Window/Function Imports find your procedure then double click it
    3. Change the return type to you want
    4. Save .edmx and check the return type again.

    It should be what you need now.

提交回复
热议问题