I use an entity structure with a stored procedure in which I dynamically generate a query and execute this query. The saved proc request looks like this:
Begin DECLARE @Query nvarchar(MAX) SET @Query = 'SELECT e.id, e.name, e.add, e.phno from employee' EXEC sp_executesql @Query End
In the sql code above, you can see that I am executing the '@Query' variable, and this variable value can be dynamically changed.
I can add the saved proc to my edmx file. and then I go to the browser model and say Add function import and try to Get column information not to show anything. but when I execute the stored proc on the server, it returns all columns with values. Why am I not getting column information in the model browser?
source share