IS It Possible to create Recusrive function using sql udf or stored procedures?

15 pts.
Tags:
Recurive function
Recursion
SQL
SQL UDF
VB
Visual Basic
Hi i have a scenario of n level tree structure.in order to traverse to my desired node i am using Recursive function until i get my desired node in my vb code but i am getting a performance issue. SO i reckon that this performance can be overcome by using sql udf or stored procedure. If so please help me coz i am pondering over this concept Thanks in advance

Answer Wiki

Thanks. We'll let you know when a new response is added.

Recursive functions are possible, but usually not recommended because of the performance hit.

What platform and version are you using? That will determine what options are available to you.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Balajisairam
    Thanks for The reply Mr.Denny. Well i am using .net platform 2.0 and sql server 2005 i was too getting the same performance issue when i use this in my vb code. But if i use recursion i am getting the exact answer. Is there any other possibility to overcome this issue. Thanks Regards Balaji
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following