1.    The sheriff shall:

Terms Used In North Dakota Code 11-15-03

.     a.    Preserve the peace.

b.    Arrest and take before the nearest magistrate, or before the magistrate who issued the warrant, all persons who attempt to commit or who have committed a public offense.

c.    Prevent and suppress all affrays, breaches of the peace, riots, and insurrections which may come to the sheriff’s knowledge.

d.    Attend each term of the district court held within the county; obey its lawful orders and directions; and act as crier thereof and make proclamation of the opening and adjournment of court and of any other matter under its direction.

e.    Command the aid of as many inhabitants of the county as the sheriff may think necessary in the execution of the sheriff’s duties.

f.    Take charge of and keep the county jail and the prisoners therein.

g.    Endorse upon all notices and process received by the sheriff for service the year, month, day, hour, and minute of reception, and issue therefor to the person delivering it, on payment of the sheriff’s fees, a certificate showing the names of the parties, the title of the paper, and the time of its reception.

h.    Serve all process or notices in the manner prescribed by law.

i.    Certify under the sheriff’s hand upon each process or notice the time and manner of service, or if the sheriff fails to make service, the reasons for failure, and return the same without delay.

j.    Perform such other duties as are required of the sheriff by law.

k.    Enforce, personally or through deputies, all statutes defining traffic violations denominated noncriminal by section 39-06.1-02.

2.    The sheriff maintains the powers under subsection 1 throughout the entire state during a transport or detention under section 29-06-05.3.