convert sp_prepexec and format sp_prepexec