SQL SERVER – Get Fetch status of a cursor using @@FETCH_STATUS function | SQL Server Rider
@@FETCH_STATUS: This function is used to get the current fetch status of a latest opened cursor.This function is global function for all cursors in the application and it is non-deterministic. Because, the result is unpredictable. For instance, a user exe...