https://berbagisolusi.wordpress.com/2011/12/01/mssql-server-stored-procedure-declare-variable-and-cursor-recordset/
Anonymous
Solving the next 5% probably costs more than the previous 90%.