When do you think a developer should use sql server-based cursors?



When do you think a developer should use sql server-based cursors?..

Answer / Adesh Kumar Singh

A developer should use SQL Server-based cursors when the logic requires iterating through each row of a result set and performing specific actions on each row, such as updating or deleting records based on complex conditions that can't be handled with JOINs or SET operations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

please tell me the query to get details of the employee having the second largest salary

11 Answers   247Customer,


What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks

1 Answers   TCS,


from the table display the 2nd highest salary? and also the least 2nd salay?

8 Answers  


What is the difference between varchar and nvarchar?

1 Answers  


How to avoid cursors?

3 Answers   CarrizalSoft Technologies, HP,


What is difference between drop truncate and delete?

1 Answers  


When multiple after triggers are attached to sql table, how to control the order of execution?

1 Answers  


Hi SQL gurus, i am working for an MNC... My team is having a problem in sql server. when user slects date prompts from jan 1st to april 30, it should display all months data like : jan aa feb bb mar cc but when it comes to april its taking data like : jan aa feb bb mar cc apr dd...and so on means its taking data again from jan to april which we dont want. we want the data only april month as we are getting jan, feb and mar... can any one write the code to relsove the issue please would be greatful if you can send to shiva_sans@yahoo.co.in and also please send your email also ...so that we will be in touch for any kind of queries ... Thanks a lot in Advance !!!

1 Answers  


Can a table be moved to different filegroup?

1 Answers  


How do you trace the traffic hitting a sql server?

1 Answers  


What is 'write-ahead log' in sql server 2000 ?

1 Answers  


How do I run sql server 2014?

1 Answers  


Categories