you will have to import the whole schema in dummy database and then extract the procedure from that.