i heard often people said do not use cursor. so i like to know what is the down side of cursor usage in sql server store procedure and trigger.
share some points for which we should avoid cursor used in sql server store procedure and trigger. thanks

Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Mar 23, 2018, 12:38 AM EDT
Also, cursors can also lead to memory leaks and locks the resources, if you do not properly dispose them and clear them out, or release the locks on the resources. But once again, it is based on the use case. Please provide a scenario and then we would be able to guide whether you need to use cursors to load the data or not.
Bhavesh JadavRank #1,731 · 875 reputationPosted Mar 23, 2018, 1:01 AM EDT
Hello Tridip,
As per my experiance and knowledge,
and during execution of cursor, no another request can access these two tables.
Thanks.
Manav PandyaRank #166 · 14.3K reputationPosted Mar 23, 2018, 12:31 AM EDT
Shahriar NikkhahRank #248 · 10.1K reputationPosted Mar 24, 2018, 7:13 PM EDT