In the UK if you have a Tier 2 visa then you apply for "Indefinite leave to remain" after 5 years of residency. The only restrictions are that you cannot spend more than 180 days outside the UK in any 12 months and your employer (sponsor) still needs you for your job.