Code adapted to the SqlInt