I have the following stored procedure:
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[GetData]
@taskName VARCHAR(205) = NULL
AS
BEGIN
SELECT *
FROM [dbo].[Table] WITH (NOLOCK)
WHERE @taskName IS NULL
OR @taskName = ''
OR Name LIKE '%' + @taskName + '%'
ORDER BY Name
END
Now I created an File.edmx
generated model, selected the GetData
stored procedure, when I do a function import and I get "Get Column Information", it says
The selected stored procedure returns no columns
I am dbo_owner
on the database and it is my user that is in the app.config on generation, and I am even storing the password in app.config
(temporarily), when I run the procedure from Management Studio, it shows the columns..
I'm puzzled!