Stored Procedure? Not sure about Pervasive with that though.