Current situation: Migrating From SQL Server 2008(r2) to SQL Server 2012.
After migrating stored procedures to MSSS 2012 some of them have stopped working, they worked fine on SQL Server 2008(r2)
Linked Server LS1
View - v_A
Executed from within v_A - p_B
v_A: Below is the code in v_A where the problem occurs
select * from OPENquery([LS1], 'set fmtonly off SET NOCOUNT ON
Below is the error I receive:
Msg 11526, Level 16, State 1, Procedure sp_describe_first_result_set, Line 1
The metadata could not be determined because statement :
'insert into #flak_Table (flakId, flakman, flakRoute, flakAPI, flakCenter, flakPond, flakType, flakCat' in procedure 'p_B' uses a temp table.
There seems to be an issue with the procedure 'sp_describe_first_result_
set' in 2012.
I have tested LSA and able to pull data from it just fine.