Re: Calling a SP inside a cursor loop..
- From: "--CELKO--" <jcelko212@xxxxxxxxxxxxx>
- Date: 30 Jun 2006 05:45:08 -0700
every loop iteration of the cursor. <<I have SP, which has a cursor iterations. Need to call another SP for
No. You need to learn to program in SQL. All you are doing is
mimicing a 1960's 3GL magnetic tape file system . In your pseudo
code, you even refer to fields instead of columns! You put the "sp_"
prefix on procedure names!
Don't you understand that SQL is a non-procedurdal language? You
should write only a few cursors in 20 years, not two in one
application.
Your whole approach to the problem is **fundamentally** wrong.
The problem I had been facing is that, the when a stored proc is called within the loop, the proc is getting into infinite loops. <<
It is very hard to de-bug code that you will not show us. But when
pseudo code is this awful, I bet that the real code is a total mess.
More cursors? Dynamic SQL? Badly written procedural code with poor
coupling and cohesion?
Any Help would be appreciated. <<
You have no idea what you are doing. What you will get on Newsgroups
is a quick kludge to get rid of you, but not any real help. You need
to stop programming and get some education; then get some training.
.
- References:
- Calling a SP inside a cursor loop..
- From: satishchandra999
- Calling a SP inside a cursor loop..
- Prev by Date: Returning the newest rows
- Next by Date: Re: Update statement, then insert what wasn't available to be updated.
- Previous by thread: Re: Calling a SP inside a cursor loop..
- Next by thread: Calling a SP inside a cursor loop..
- Index(es):
Relevant Pages
|
|