• Convert it to a stored procedure and pass the required parameters through it.