Upgrade from AX 4.0 to Ax 2009

Hi friends,

Hai, My task is upgrading ax4.0 to ax2009. I already taken the ax4.0 appln and db as a backup. Then I installed one new instance in ax2009 and created one new db for that instance. What my question is i will paste the appln and restore the database of ax4.0 into ax 2009 either before starting the upgrade checklist or after completed the Upgrade checklist.

Pls let any one give some idea.