The judge of the district court of the county in which a defendant is to be sentenced, or the state's attorney or sheriff thereof, shall ascertain the criminal record of every defendant convicted of a felony before sentence is passed on said defendant. The state's attorneys and sheriffs, upon the request of the chief of the bureau or the attorney general, shall furnish to the chief of the bureau a statement of facts relative to the commission or alleged commission of all felonies within their respective counties upon such blanks or in such form as may be requested by the chief of the bureau or the attorney general.
N.D.C.C. § 12-60-13