| 
	
 | 
 Posted by Lucky on 06/26/79 11:51 
I'm agree with you on avoiding CURSORs and i always welcome suggestions 
on doing things other ways. 
the foreach loop you suggested me was a good suggestion. i already 
tried that that to avoid cursor but the problem was with the bunch of 
line to modify tables,procedures,views and all i wanted to do is to 
write some logic to update all database rather than doing it manually. 
 
i found the way out and i did it. 
 
but you know when you are on job you have immense pressure on you and 
that time you can't wait to explain everything. if it would be 
something that i needed for more then 1 time then i would have 
discussed the problem in more detail and of course also might welcomed 
your suggestions. 
 
i trully appriciate the help i get from groups and that is why i always 
prefer groups then tutorials and books. Learning from others experience 
is always better then anything. 
 
Erland Sommarskog wrote: 
> Lucky (tushar.n.patel@gmail.com) writes: 
> > i didn't get you. what do you mean by make myself clear? 
> 
> That I did not understand what you was looking for. And I am sorry, 
> to that end I am the sole judge. You may know what you were looking 
> for, but that does not mean that you manage to convey that message. 
> 
> > The problem is quite simple to understand. and tha is HOW TO USE OUTPUT 
> > OF THE PROCEDURE TO CREATE CURSOR. 
> 
> And that is a such a strange thing to, thar there is all reason to ask 
> what you want really want to do. In fact, any question that involves a 
> cursor will be met with the suspicion that the cursor may not be needed. 
> 
> But there is also one more reason to ask what you really want to do: 
> there may be several options, and which is the best one, depends on 
> your actual business problem. 
> 
> Finally, please remember that on Usenet you never get less help than 
> you pay for. 
> 
> -- 
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se 
> 
> Books Online for SQL Server 2005 at 
> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx 
> Books Online for SQL Server 2000 at 
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
 
  
Navigation:
[Reply to this message] 
 |