Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Stored procedure returning dataset

Author  Topic 

madhan
Yak Posting Veteran

59 Posts

Posted - 2014-09-26 : 11:19:03
[code]
ALTER PROCEDURE [dbo].[getFavoriteList]
as
begin
SET NOCOUNT ON
select manufacturer_name from dbo.Favorite_list
end
[/code]

execute getFavoriteList

it reruns infinite data and finally i got message as

Msg 217, Level 16, State 1, Procedure getFavoriteList, Line 15
Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32).

I am trying to return the dataset from stored procedure.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-09-26 : 12:16:00
Is Favorite_list a function? How many rows does it return without a where clause?

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -