I read a lot of posts on how to handle this. None of this works. Here is my scenario:
I have the following sproc (exactly the same as the script, except that I changed the names of the schemas, tables, and columns to remove them):
USE [DevelopmentDatabase] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO alter PROCEDURE [MyCustomSchema].[GetSomethingINeed] AS BEGIN SELECT things.ThingGroupId FROM ReferenceSchema.SomethingNeeded things (NOLOCK) WHERE things.ThingId = 4655946989 END GO
When I import this structure into an entity, it works fine. But then when I click the "Get column information" button, I get this message:
The selected stored procedure or function does not return columns.
I tried:
- SET FMTONLY OFF
- SET NOCOUNT OFF
- Moving sproc to
dbo - Even easier with sproc (
SELECT cast (1 AS int) as SomeColumn ) - Removing and re-adding sproc (via the model browser)
- Restarting Visual Studio.
Could this be a SQL Server 2012 issue?
source share