The return types for the following stored procedures could not be detected

后端 未结 15 2140
小鲜肉
小鲜肉 2020-12-09 08:09

While drag-drop a stored procedure in dbml file I get this error:

Unknown Return Type
The return types for the following stored

15条回答
  •  一整个雨季
    2020-12-09 08:48

    I also had this problem - had to comment out code that was constructing a polygon:

    declare
        @MapBounds geography
        ;
    
    select
        @MapBounds = geography::STGeomFromText('POLYGON((' + 
            cast(@NorthEastLng as varchar) + ' ' + cast(@NorthEastLat as varchar) + ', ' +  
            cast(@SouthWestLng as varchar) + ' ' + cast(@NorthEastLat as varchar) + ', ' +  
            cast(@SouthWestLng as varchar) + ' ' + cast(@SouthWestLat as varchar) + ', ' +  
            cast(@NorthEastLng as varchar) + ' ' + cast(@SouthWestLat as varchar) + ', ' + 
            cast(@NorthEastLng as varchar) + ' ' + cast(@NorthEastLat as varchar) + 
            '))', 4326)
        ;
    

    Once it was added to the dmbl, I un-commented out the code and it worked like a champ!

提交回复
热议问题