This is an appeal from an order sustaining a demurrer 'to a complaint, and from the judgment entered in favor of the defendants, the plaintiff'declining to plead over.
The action is one for a partition of the lands of a deceased person among his heirs, for an adjudication of the various interests therein, and for a sale of the land in the event that partition cannot be made, and for general equitable relief. It is brought by one of the heirs, William O. Honsinger, and against the remaining heirs, the administrator, certain mortgagees; namely, the Travelers Insurance Company, R. B. Cartel’, the Merchants Bank of Fargo, the Northern Trust Company, and an attaching creditor, Fred W. Lohr. It is brought, however, in the district court and before any final decree of distribution has. been entered in the probate or county court.
The demurrer is joined in by all of the defendants except the attaching creditor, Lohr, and raises the objections:
(1) That the court has no jurisdiction of the persons of the said defendants.
(2) That the court has no jurisdiction of the subject matter of the action.
(3) That the complaint does not state facts sufficient to constitute a cause of action.
The main question for decision is whether an heir can maintain a suit for partition against the other heirs and the administrator in the district court, after the county court has assumed jurisdiction to probate and administer the estate, and has appointed an administrator for that purpose, and before a final decree of distribution has been made by the county court. We are satisfied that he cannot.
■ Hnder the Constitution and Code of North Dakota, “the entire assets 'of the estate, except those mentioned in § 6372, Revised Codes, 1905, § *5178707, Comp. Laws 1913 pass into the possession of the executor or administrator, to be held for the use of the estate, and finally to be distributed to the heirs or devisees under the order of the county court. These sections of the Code changed entirely the common-law rule governing the possession and control of real property pending administration.” Blakemore v. Huberts, 12 N. D. 394, 96 N. W. 1029.
Section 111 of the Constitution of North Dakota gives to the county court “exclusive original jurisdiction in probate and testamentary matters, the appointment of administrators and guardians, the settlement of the accounts of executors, administrators and guardians, the sale of lands by executors, administrators and guardians, and such other probate jurisdiction as may be conferred by law.”
Following this constitutional provision is § 8524 of the Compiled Laws of 1913, which provides that “the county court has original jurisdiction in probate and testamentary matters, the appointment of administrators and guardians, the settlement of the accounts of executors, administrators and guardians, the sale of lands by executors, administrators and guardians, and such other probate jurisdiction as may be conferred by law.”
Following this is § 8707, Compiled Laws of 1913 which provides that “the executor or administrator is entitled to possession of all the real and personal property of the decedent except the homestead and other exempt property reserved by law to the surviving husband or wife; . . . and must protect the real property from waste or other injury and collect the rents and profits thereof until ordered to surrender the same, and collect the goods, chattels and other effects of the decedent and the debts and demands of every description due to the decedent or accruing to the estate in his right, and safely keep and dispose of the same according to law.”
Section 8730 of the Compiled Laws of 1913 provide that “all the property of the decedent except as otherwise provided for the homestead and personal property set apart for the surviving wife or husband and minor child or children shall be chargeable with the payment of the debts of the deceased, the expenses of administration and the allowance to the family, and the property, personal and real, may be sold as the court may direct in the manner hereinafter prescribed. There shall *518be no priority as between personal and real property for the above purposes.”
Section 8733 provides that “the estate real and personal given by will to legatees or devisees is liable for the debts, expenses of administration and allowance to the family in proportion -to the value or amount of the several devises or legacies, but specific devises or legacies are exempt from such liability if it appears to the court necessary to carry into effect the intention of the testator and there is other sufficient estate.”
It is apparent from the above provisions that to allow the district court to entertain an action for the partition of the real estate among the heirs before the decree of final distribution would materially interfere with the exclusive jurisdiction and control which has been given both by the Constitution and the statute to the county court. “The entire assets of the estate, except those mentioned in § 6372 Rev. Codes 1895, § 8707, Comp. Laws 1913, pass into the possession of the executor or administrator to be held for the use of the estate and finally to be distributed to the heirs or devisees under the order of the county court,” and this is both for the protection of the heirs and devisees and of the creditors as well as for the purpose of securing the payment of the costs of administration. See Blakemore v. Roberts, 12 N. D. 394, 96 N. W. 1029.
. There may be decisions to the contrary, but they are decisions under Codes and constitutional provisions which are dissimilar to our own, and which adhere to the common-law theory that the heir or devisee has sole control of the real estate, and that such real estate is not subject to the payment of debts or the expenses of administration. Ibid.; Meeks v. Hahn, 20 Cal. 621; Re Barker, 5 Wash. 390, 31 Pac. 976; Lowery v. Hawker, 22 N. D. 318, 37 L.R.A.(N.S.) 1143, 133 N. W. 918.
Before the final decree of distribution, the title of an heir is not such as will support an action of partition as against the administrator and the other heirs. Sjoli v. Hogenson, 19 N. D. 82, 122 N. W. 1008; Fischer v. Dolwig, 29 N. D. 561, 151 N. W. 431; Hazelton v. Bogardus, 8 Wash. 102, 35 Pac. 605; Page v. Tucker, 54 Cal. 122; Thomas v. Thomas, 73 Iowa, 657, 35 N. W. 693; Adams v. Beideman, 33 N. J. Eq. 79.
*519The cases cited by counsel for appellant are not in point. Ryer v. Fletcher Ryer Co. 126 Cal. 482, 58 Pac. 908, was a suit commenced by an administrator against a person who, at the death of the decedent, owned the land in common with the decedent. It was not an action to partition the land among the heirs, but rather a suit by an administrator to recover property of the decedent from one not an heir and for the benefit of the heirs and of the estate. The case of Grant v. Murphy, 116 Cal. 432, 58 Am. St. Rep. 188, 48 Pac. 481, was a controversy between rival estates and, like the preceding case, it was one ultimately to decide what property belonged to the estate and what did not. The cases of Smith v. Smith, 132 Iowa, 700, 119 Am. St. Rep. 581, 109 N. W. 194, and Poulter v. Poulter, 193 111. 641, 61 N. E. 1056, were handed down in states having different constitutional provisions from our own.
The only section of our Code indeed which seems to furnish any support for the position of the appellants is § 8797 of the Compiled Laws of 1913, which is § 6460 of the Revised Codes of 1899, and which provides that “the heirs or devisees may themselves or jointly with the executor or administrator maintain an action for the possession of the real estate or for the purpose of quieting title to the same against anyone except the executor or administrator. For the purpose of bringing suits to quiet title or for partition of such estate the possession of the executor or administrator is the possession of the heirs or devisees. Such possession by the heirs or devisees is subject, however, to the possession of the executor or administrator for the purposes of administration as provided in this Code.”
It is clear, however, that the right of action in the heirs, which is conferred by this section, is subject to the right of possession of the administrator, and confers no right to maintain an action which is hostile to him. Blakemore v. Roberts, 12 N. D. 394, 96 N. W. 1029.
Nor is there any merit in appellant’s contention that the demurrer amounted to a general appearance, and therefore conferred jurisdiction upon the district court in this suit. The demurrer asked for no relief except the dismissal of the action and costs. Section 7442 expressly provides that the points may be raised by demurrer; “that the court has no jurisdiction of the person of the defendant or the subject of the action.” It is true that the demurrer also alleges that the complaint *520does not state facts sufficient to constitute a cause of action, and it is possible that this allegation may have given the district court jurisdiction of the persons of the defendants. It did not, and could not, however, give the district court jurisdiction, of the subject matter, and it is the jurisdiction of the subject matter which is, after all, the matter which is involved in this case.
The judgment of the District Court is affirmed.