Solved

SQL server 2008 Recursive error

Posted on 2014-10-29
1
37 Views
Last Modified: 2015-09-08
Hi Experts,
While running the above query (original) he is getting following error(ROACH CODE ERROR)
(2.)
After modifying the query(modified query1) as follows
he is getting following error(ROACH ERROR log)
(3.)
And finall when we make following change(modified query2)
we do not get an error , but query ran for 12 hrs + without completion .
Could you pls provide solution.
Thanks in adavance.
modified-query1.txt
modified-query2.txt
original-query.txt
ROAC-Code-error.jpg
ROAC-Error-log.jpg
0
Comment
Question by:Sandeepiii
1 Comment
 
LVL 13

Accepted Solution

by:
Koen Van Wielink earned 500 total points
ID: 40412935
The error you're getting indicates there's something not right with your recursion, and it's stuck in an infinite loop. The second modification disables the maximum number of recursions SQL would normally allow, but since it's still an infinite query it keeps running until you termintate it manually.
It's hard to determine what is wrong with your query without sample data, table structures and an example of your expected output. Please post some sample data and a sample of your desired output.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question