The cursor is already open sql server