If you have back up your text messages, you can restore from the backup.
To restore information from a backup, use one of the following methods after connecting your iOS device to the computer with which you normally sync:
1. Right-click (or Control-click) the device and choose Restore from Backup
2. If you have a new phone, you can connect to iTunes and it will prompt to restore from your backup Solution from Apple.com: http://support.apple.com/kb/ht1766
If you have no backup for your data on iPhone, iPhone data recovery software is your last shot! I used Tenorshare iTunes Data Recovery and it worked well. It's easy to use. Just a few clicks you can get all your data back. Here is a step by step guide for you: http://goo.gl/FpOvb
An iTunes back up does save the SMS messages as long as they were on the phone when the back up was made. You can even check the article http://support.apple.com/kb/ht4946 which clearlhy states SMS are saved in a back up. I personally aswel always have my SMS saved in my back ups I've restored from.
if you had an iTunes backup taken, try this: http://support.apple.com/kb/ht1766
it's always reccomended to take backups. itunes takes automatic backups if you ever plug it into your Mac/PC. have a look. you may have a backup, without you knowing.
it may work, i havent tried this method.
<Link Edited by Host>
Why does the iTunes backup function not include the backing up of the SMS messages on my iPhone or a facility to restore these in the event of having a new iPhone etc?
The only means of doing this seems to be through a 3rd party app which is not ideal, and i would much rather prefer to do this within iTunes.
If i wanted to upgrade my iPhone 4 to the new iPhone 5, i would essentially lose nearly 2 years worth of texts, which i would prefer to avoid.
Surely there must be some way to 'copy' these over from one iPhone to another.
I have a program called iPhone SMS Backup which i have used to export all my SMS to my PC, but there is no ability to then restore these.
Anyone know of a way to do this or why Apple dont provide this within iTunes?
As you backup your iPhone to iTunes, your SMS will be certainly synced to iTunes and you can restore them from backup.
To transfer anything not purchased from the iTunes Store, you need to use a 3rd-party utility. Here are two that will do the job: