Solved

SQL server 2008 Recursive error

Posted on 2014-10-29
1
34 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 12

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how the fundamental information of how to create a table.

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now