Viewing 3 posts - 1 through 4 (of 4 total)
The problem surfaces when the stored procedure uses dynamic SQL.
using tempdb
create proc usp_test as
set nocount on
declare @sql_str as varchar(15)
set @sql_str = 'SELECT 1 FROM MyTable'
exec (@sql_str)
------------------------------------------------------------------
SELECT COUNT(*)...
March 12, 2015 at 8:48 am
Duplicate Post
March 12, 2015 at 8:45 am
The procs are actually local. I'm using a linked server to my local instance so that the returned row counts can easily be counted.
March 12, 2015 at 8:26 am
Viewing 3 posts - 1 through 4 (of 4 total)