Afternoon,
I get the following error when executing the code below.
Server: Msg 510, Level 16, State 2, Line 9
Cannot create a worktable row larger than allowable maximum. Resubmit your query with the ROBUST PLAN hint.
Any advice with this would be greatly appreciated.
cheers,
TheGeezza
I get the following error when executing the code below.
Server: Msg 510, Level 16, State 2, Line 9
Cannot create a worktable row larger than allowable maximum. Resubmit your query with the ROBUST PLAN hint.
Code:
declare @routine_catalog varchar(255)
declare @routine_name varchar(255)
declare @routine_definition varchar(255)
--Create a cursor to cycle through all of the columns specified in the user supplied table.
declare cXursor cursor for
select routine_catalog,routine_name,routine_definition
from information_schema.routines option(ROBUST PLAN)
open cXursor
fetch next
from cXursor
into @routine_catalog,@routine_name,@routine_definition
Any advice with this would be greatly appreciated.
cheers,
TheGeezza