Sometimes in SQL Server when attempting to restore a database on server A (whose backup is taken on server B) fails due to servers A and B using different versions of SQL server. In such a situation restoring database is done by generating database scripts of both schema and data.
So in this case we Script Database in server B and then run these scripts on database in server A. This SQL Script contains all the Schema with Data. So we can simply run this SQL Script in Server A database and our original database is recreated.
The below Steps outlines how to Script Database so that it not only has all the Schema but also all the data.
Now you have the Full Database Script which you can run them on any database server for restoring purpose.