Tbe record discloses tbe fact that tbe defendant, Winbauer, was indicted by the grand jury of Morton county on tbe 3d day of December, 1907, for tbe crime of keeping and maintaining a common nuisance in a certain building on lot 11 in block 8 in tbe city of Mandan. To this indictment the defendant plead not guilty, and thereupon such proceedings were bad that tbe case was transferred to Barnes county, in the fifth judicial district for trial.
On February 7, 1908, tbe case was brought on for trial in tbe district court of Barnes county before Honorable E. T. Burke, presiding judge, and a jury. Tbe state being represented by T. P. McOue, attorney general, and B. W. Shaw, the state’s attorney of Morton county, and the defendant by L. A. Simpson, James M. Iianley, and A. T. Eabcr; and on tbe 8th day of February, 1908, the case was concluded and tbe jury brought in a verdict of guilty as charged in tbe indictment. On February 13, 1908, judgment and sentence was pronounced against tbe defendant by tbe court for a term of ninety days’ imprisonment and a fine of $200. On February 11, 1909, or just two days less than a year after tbe pronouncing of sentence and rendition of the judgment against tbe defendant as aforesaid, tbe defendant appealed *46to tlie supreme court from said judgment rendered in said cause on the 13th day of February, 1908, and from the whole of said judgment. Such appeal was accompanied by an undertaking, which was a super-sedeas, and a certificate of probable cause granted by the trial judge on December 24, 1909, and after the notice of appeal to the supreme court had been served, and while said appeal was pending in the supreme court, the Honorable E. T. Burke, judge of the fifth judicial district made and filed in said action an ex parte order, which order was in words and figures as follows'
“Whereas, this court did on the 13th day of February, 1908, duly pronounce and render a judgment and sentence against defendant upon his conviction of the crime of keeping and maintaining a common nuisance, and therein and thereby sentence the defendant to be imprisoned in the county jail of IVIorton county, North Dakota, for the period of ninety days, and that he pay a fine of $200, making a total judgment of $200, which said judgment was and is in the words and figures of the copy hereto attached and made a part hereof.
“Whereas it appears to the court that such judgment and sentence of the court was, by inadvertence and oversight, not entered in the office of the clerk of this court, as required by law, at the time of its rendition, as aforesaid,
“Now, therefore, it is ordered by the court that the clerk enter such judgment by filing the copy thereof hereto attached, and by entering the same upon the minutes of this court as required in and by § 10106, and by docketing such judgment as required by § 10105 of the Revised Codes.
“And it is further ordered by the court that such judgment be entered as of the 13th day of February, 1908, the date on which the same was pronounced by the court, and that all acts in relation thereto be had and done as of said date.
“Dated this 24th day of December, 1909.
Edward T. Burke, Judge.”
On March 9, 1910, on application of the defendant, the supreme court ordered that the defendant be granted leave to withdraw the said appeal, and the supreme court then ordered that the cause be remanded to the district court for further proceedings according to law. After the remittitur was filed in the lower court, the defendant applied to *47tbe district court of Barnes county, on motion, for an order declaring and adjudging that tbe purported and pretended judgment rendered as of date February 13, 1908, be declared void from tbe very time of its attempted inception. Tbe matter was brought on for bearing on motion, and based upon a notice of motion to vacate judgment, wbieb notice of motion was supported by tbe affidavits of tbe defendant, Win-bauer, and of J. E. Campbell.
Upon tbe bearing of tbe motion to vacate judgment, before Judge Coffey, at Valley City, tbe state was represented by Alfred Zuger, assistant attorney general of North Dakota, and tbe defendant by J. E. Campbell. After the bearing of said motion and tbe argument of counsel, Judge Coffey made bis order dated November 10, 1911, adjudging that said judgment and sentence as of date February 13, 1908, was void from tbe very time of its inception, and that tbe same be set aside, vacated, and annulled, and declared absolutely void. And from such order vacating tbe judgment and sentence of February 13, 1908, tbe state of North Dakota appeals to this court.
Tbe record in this case is regular and valid on its face. It is, however, contended by tbe affidavit of tbe defendant, used upon tbe motion to vacate tbe judgment, that be was convicted on tbe 7th day of February, 1908, in tbe district court of Barnes county, and on tbe 8th day of February, 1908, that tbe term of court at which defendant was convicted was adjourned without tbe defendant being sentenced, and that tbe court announced that at Bismarck, on tbe 13th day of February, 1908, it would pass sentence on tbe defendant, and that on the 13th day of February, 1908, in tbe bouse of representatives chamber of tbe state capitol, tbe judge of said court, and in absence of court officials, sentenced tbe defendant to ninety days in jail, and to pay a fine of $200. The affidavit of tbe defendant has not been controverted or denied, and, therefore, for tbe purposes of this appeal this court will assume that judgment and sentence on tbe conviction of tbe defendant was pronounced at Bismarck, in tbe sixth judicial district, on tbe 13th day of February, 1908, by E. T. Burke, judge of tbe fifth judicial district.
Tbe attack on this judgment by motion is a direct, and not a collateral, attack. Therefore, tbe only question involved is, Was tbe judgment and sentence pronounced at Bismarck in tbe sixth judicial dis-*48fcrict, on the 13th day of February, 1908, void ? If absolutely void, then the order appealed from must be affirmed; otherwise reversed. When the place of trial in a criminal action is changed to another judicial district, the court to which the action is removed for trial has full jurisdiction and authority to hear, try, and determine the action, and upon conviction to impose the punishment provided by law, and the trial shall be conducted the same in all respects as if the action had been commenced in said court; and on the trial of the action the judge of the district to which the action has been transferred acts as the judge of said district, and not as the acting judge of the judicial district from which the action was transferred, or at the written request of said judge.
It is contended by the respondent that the judgment is void by reason of § 6Y65 of the 1905 Code, which provides that no judge of the district court shall hear or determine any action, special proceedings, motion, or application, or make any order or give any judgment in any action or proceedings not pending in the judicial district for which he is elected, — except in certain cases therein enumerated. As Judge Burke was the judge of the fifth judicial district, and said action was in fact and at that time pending in his judicial district, the action of the court was not in violation of said section. And § 6Y66, Bev. Codes of 1905, expressly provides that no order or judgment given by the judge of any district contrary to the limitations of the preceding section shall for that reason be void, but such order or judgment may be vacated upon application, within thirty days from the time the same shall have been made or given, to the judge of the district in which the action or proceeding in Avhich the same was made or given is pending, and if appealable, by the supreme court on appeal.
Section 6Y64- of the 1905 Code provides that all orders made, judgments given, or other acts done, by any judge of the district court in any action, special proceedings or other matter, civil or criminal, shall be deemed and held to be the orders, judgments, and acts of the court; and the several judges of the district court shall have jurisdiction throughout the stale to exercise all the powers conferred by law upon the district court or judges thereof, subject to the limitations of this article provided; and in such article we can find no limitation to the authority of the judge of the district court rendering or pronouncing *49judgment outside bis judicial district in an action properly pending in bis judicial district, in cases in wbicb be bas jurisdiction over the person and subject-matter of the action. Jurisdiction being obtained over the person and over the subject-matter, no error or irregularity in its exercise can make the judgment void. See Freeman, Judgm. 4th ed. § 135, and eases cited.
The record in this case clearly discloses the fact that the defendant was duly convicted in the district court of Barnes county, in the fifth judicial district, of the crime of keeping and maintaining a common nuisance, and the further fact that Judge E. T. Burke was the duly elected, qualified, and acting judge of said judicial district. Therefore, on the 13th day of February, 1908, said judge had jurisdiction over the person of the defendant and the subject-matter of the action. 23 Cyc., page 618, says this with reference to the place of trial: “It is an irregularity, but not a destructive jurisdictional defect, to try a case and render judgment at a place other than that fixed by law for -the holding of the court, or in a county other than that declared by statute to be the proper county for its trial, or to render judgment in a county other than that in which the venue was laid or other than that in which the trial was had.” Citing several cases.
In the case of Gould v. Duluth & D. Elevator Co. 3 N. D. 96, 54 N. W. 316, it was held that a judge of the district court of the district in which the action is pending has authority by an ex parte order, made while outside of such district, and within the state, to direct the entry of a judgment in such action, and where an outside judge has been requested to act in the place of the judge of the district where the action is pending, under chap. 61, Laws of 1890, such outside judge is, with respect to such cases or matters as come within the request to act, empowered to do and perform all such acts as might have been done and performed by the judge of such district. Accordingly, held that the judge of the fifth judicial district, who had been duly requested to act, had authority to sign an ex parte order for judgment while within the fifth district, the action being pending in the third district.
Mr. Justice Wallin, in said case, further says: “We think the act of signing an ex parte order for judgment, if done within the state, but outside of the district where the action is pending, and the signing is done by the judge of the district court in which the action is pending, *50is not an irregularity in practice.” See also State ex rel. Boclameicr v. Ely, 16 N. D. 569, 14 L.R.A.(N.S.) 638, 113 N. W. 711; State ex rel. Erickson v. Burr, 16 N. D. 581, 113 N. W. 705; State v. Bednar, 18 N. D. 484, 121 N. W. 614, 20 Ann. Cas. 458.
The respondent bas not cited any cases in support of his contention or that would throw any light upon the question, and after a thorough search we are unable to. find any law or authorities holding the judgment and sentence in this case to be void. And it appearing to this court that the defendant was duly _ convicted in the district court of Barnes county on the 7th day of February, 1908, that Judge E. T. Burke was then the duly elected, qualified, and acting judge of said district, and that said district judge had jurisdiction over the person and subject-matter of the action, and that said district judge on the 13th day of February, 1908, duly pronounced judgment and sentence upon said defendant on said counts as aforesaid, and it appearing to this court that the said judgment was and is a valid judgment, and was not and is not void for want of jurisdiction, it is therefore ordered that the order of the district court for Barnes county, made and entered the 10th day of November, 1911, vacating and setting aside the judgment of the district court for Barnes county of‘February 15, 1908, is reversed. And the case is remanded to the District Court of Barnes County to enforce the judgment on conviction and to take further proceedings according to law.
Buekb, J.,being disqualified, not participating. At the request of the court, Honorable W. J. ICneeshaw, judge of the seventh judicial district, sat with the court in the hearing of the case.