Replied on
11 Jun 2015 02:25 PM IST
DECLARE Send_DBMailCursor CURSOR FAST_FORWARD READ_ONLY FOR SELECT Name,ID from <Table Name> OPEN Send_DBMailCursor FETCH NEXT FROM Send_DBMailCursor INTO @NAME,@ID WHILE @@FETCH_STATUS = 0 BEGIN // write your code FETCH NEXT FROM Send_DBMailCursor INTO @NAME,@ID END CLOSE Send_DBMailCursor DEALLOCATE Send_DBMailCursor
|