Stored procedure returns int instead of result set

后端 未结 17 2013
说谎
说谎 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:07

    During import

    SET FMTONLY ON can be used for taking the sp schema.

    If you change the sp and want to update the new one, you should delete the old defined function from edmx file (from xml), because although deleting sp from model browser, it is not deleted in edmx. For example;

        
           
        
    

    I had the same problem, and when I delete the FuctionImport tag of corresponding sp totally, the model updated right. You can find the tag by searching the function name from visual studio.

提交回复
热议问题