check the below link:
http://www.logiclabz.com/sql-server/sql-to-grant-execute-permission-to-all-procedures-and-functions.aspx