Tutorial – Grab SMS and PhoneBook from backup files on computer

The following are two files that are stored on PC/MAC after backing up the iPhone.
SMS: 3d0d7e5fb2ce288813306e4d4636395e047a3d28
PhoneBook: 31bb7ba8914766d4ba40d6dfb6113c8b614be442

Location:

(Windows Vista/7)
C:\Users\[your username]\Application Data\Apple Computer\MobileSync\Backup\[some id]\

(Windows XP)
C:\Documents and Settings\[your username]\Application Data\Apple Computer\MobileSync\Backup\[some id]\

(Mac OSX)
~/Library/Application Support/MobileSync/Backup/[some id]/

Using sqlite, you can read the database files as long as the backup was not encrypted.

Similarly, you can rename the files to sms.db or AddressBook.sqlite respectively and transfer them to your phone.