How can we recover the rules and procedures during the recovery of SQL database components?

Is there any way to recover the rules or procedures in SQL database recovery?