It is evident from a reading of the affidavit, and considering the form of action contemplated, that all the facts necessary to formulate the complaint are within the plaintiff’s knowledge. It may be that, for the purposes of a trial, an examination of the defendant may be necessary; but, in order to prepare a complaint, no facts in addition to those that the plaintiff swears to would be necessary, assuming, as the portions of the affidavit quoted would seem to indicate, that the plaintiff intends to bring a suit in equity for specific performance and an accounting. The plaintiff claims, however, that he is in doubt as to whether he shall bring such an action or one at law, and that the examination is required in order that he may determine this question. We do not think he is entitled to any such relief, the provisions of the Code confining examinations of parties to the eliciting of information which shall enable a plaintiff to frame his complaint, or for use on the trial, and not for the purpose of determining whether he has one or the other of two causes of action.
The order is also improper in that it directs the production of the -defendant’s books, the most that the plaintiff could claim being the right to examine the defendant; and if, in that connection, for the purpose of testifying, resort to the books were necessary, the defendant would be required to refer to the books for the purpose of giving the desired information. Considerable latitude is always permitted with respect to the examination of an agent by a prin*10cipal, or by one towards whom the person being examined stands in a fiduciary relation, where the facts are peculiarly within the knowledge of the one under examination, but the rule permitting such latitude does not go to the extent of allowing a person to ascertain all the defendant’s evidence, with a view to selecting one of two causes of action against him. As the plaintiff here has sufficient information, as shown by his affidavit, to frame a complaint in a suit in equity, he should not, upon the ground that perhaps he might bring an action at law, be permitted to speculate upon the results of the examination of the defendant and his books, or the facts that he might unearth thereby.
We think that the affidavit upon which the order was granted was insufficient, and the order itself too broad, and that, for these reasons, the order should be reversed, with $10 costs and disbursements, but without prejudice, and with leave to plaintiff to renew the application upon proper papers, after he has determined the form of his action, if he can show that any information peculiarly within the knowledge of the defendant is essential to enable him to frame his complaint, or necessary for use upon the trial.