The opinion of the court was delivered by
This proceeding in error raises the sufficiency of a petition and answer and various rulings of the' court thereon. Plaintiffs in error were plaintiffs below. Their petition was filed January 31, 1905, by which it was sought to enjoin a sheriff’s sale. It was *457supported by affidavits, and the temporary injunction was allowed by the court on the same day.
Subsequently, upon motion, the court required plaintiffs separately to state and number their causes of action, and an amended petition was filed. This petition alleged that plaintiffs owned certain real estate in the city of Topeka; that they were defendants in a suit to foreclose a mortgage in the district court of Shawnee county, in which Maria H. Hotchkiss was plaintiff, and in which, on January 26, 1900, she recovered judgment against them; that the real estate covered by the mortgage had been sold under the foreclosure, leaving a balance due thereon of $220, which had not been paid; that Maria H. Hotchkiss, plaintiff in the foreclosure proceedings, died in the city of New York on the 10th day of November, 1901, without .leaving any last will and testament; that an administrator of her estate was duly appointed in December, 1901; that the judgment rendered in the foreclosure suit was never revived nor made a lien upon plaintiffs’ real estate, and thereby became and was dormant; that, notwithstanding the dormancy of the judgment, defendants, in violation of the rights of plaintiffs, and in order to subject them to the annoyance of an action at law for the protection of their property, had sued out an execution on the judgment in December, 1904, directed to the sheriff of Shawnee county, and that the sheriff in obedience thereto levied upon the real estate belonging to plaintiffs and advertised the same for sale, and that unless restrained by the court would on a certain day sell the same at sheriff’s sale to satisfy the execution. It was also alleged that the judgment constituted a cloud on plaintiff’s real estate.
In the prayer for relief plaintiffs asked that their title to the real estate be established against the adverse claims of defendants and that the latter be barred and forever estopped from claiming any right or title adverse to plaintiffs in the real estate, and that defendants *458be enjoined by the order of the court from, proceeding any further in the action, and. for costs.
To this an answer .was filed which admitted the death of Maria. H. Hotchkiss but alleged that she only appeared to be plaintiff in the foreclosure proceeding?, and that the real parties in interest were Charles H. Bissell and William L. Bissell;. that long before the foreclosure proceedings were commenced Maria H. Hotchkiss, by a deed of trust, a copy of which was attached to the answer, had conveyed all her interest in the note and mortgage to them as trustees, and had authorized them by the deed of trust to maintain an action in her name thereon, and that the cause of action, although prosecuted in the name of Maria H. Hotchkiss, was, in fact, the cause of action , of Charles H. Bissell and William L. Bissell, who were then and ever since haye been and are now the owners of the estate and property rights, real and personal, of Maria H. Hotchkiss, and of the judgment rendered in her name; that the foreclosure.had been commenced long after the acceptance by them .of the trust created by the deed of trust.
Plaintiffs.demurred.to the answer. The court over- . ruled the demurrer as to . the answer, and carried the demurrer back to the petition and.sustained it.
Afterward, another petition, was filed, setting up the same facts, except that it omitted certain allegations in the former with reference to damages sustained, and asked that the injunction be made perpetual. This the court ordered stricken from the files, oh the,ground that it -was inconsistent with the former petitions and constituted a departure. The court made an order dissolving the temporary injunction, and rendered judgment against plaintiffs for costs.
The merits of the controversy can best be determined by considering the, sufficiency of. the petition and the answer. It is. the contention of defendants that the petition is demurrable because it sets up an affirmative *459cause of action based upon the statute of limitations, and such appears to be the conclusion reached by the court.
There are cases-holding that equity will, not enjoin an execution upon a dormant judgment, (See 16 A. & E. Encycl. of L. 404.) We fail to find in any of them, however, a suggestion that the suit-, cannot be maintained because plaintiff thereby seeks to use the statute of limitations as a sword instead .of a shield, or seeks affirmative relief based upon the statute. They proveed upon the theory, that plaintiff has ap- adequate remedy at law by motion in the- original action to recall the execution, or, as, in Hanson v. Johnson, 20 Minn. 194, that a sale under such an execution, would not cast any cloud on plaintiff’s land. The weight of authority, however, is that a suit will lie to enjoin an execution on a dormant judgment, notwithstanding plain-biff may have a different remedy by proceeding, by motion in the original action. (See 16 A. & E. Encycl. of L. 404; 2. Freeman, Judg., 4th ed., § 497.)
By this proceeding plaintiffs do not seek to use the statute for the purpose of securing anything, except that to which they are already entitled; they seek to hold what the law has already given them — the right to their property as against a void execution.-
The prayer for relief does not determine the nature or extent of the relief to which plaintiffs are entitled. It is not a part, of the cause of action in that sense. (Smith v. Smith, 67 Kan. 841, 73 Pac. 56, and cases cited.). The law determines the relief to which a plaintiff is entitled upon, the facts averred. Nor does, a petition become demurrable because from its averments it seeks to recover more than plaintiff is entitled to, if it •otherwise states a cause of action.
The petition alleged that an execution had been issued! upon a dormant judgment, and that unless, restrained by the court the sheriff would-proceed.to.sell .at public sale the real estate belonging to plaintiffs. *460The fact that it contained other averments upon which plaintiffs asked that their title be quieted against the judgment does not affect the former averments. We think the petition stated a good cause of action, and that the court erred in sustaining the demurrer.
(94 Pac. 121.)
The demurrer to the answer should have been sustained. None of the facts stated therein could affect the dormancy of the judgment. The statute declares the conditions which render a judgment dormant, and provides the manner in which it may be revived. (Code, §§ 430, 433, 434, 439; Gen. Stat. 1901, §§ 4880, 4883, 4884, 4889; Seeley v. Johnson, 61 Kan. 337, 59 Pac. 631, 78 Am. St. Rep. 314.) There'is no exception provided by which a judgment in the name of one person shall be kept alive after his death by a showing that the cause of action or thé judgment in which it merged belonged, in fact, to another.
The court erred in dissolving the temporary injunction, and in striking from the files the petition of plaintiffs. For these reasons the judgment is- reversed and the cause remanded for further proceedings in accordance herewith.