(1) Go to Your Database and right click on your database.
(2) Click Next Button.
.
(3) Select the Database that you want to script. Then check the Check Box if you want to generate the script of all the objects (such as the stored procedure etc.).
(4) Select the true option from the script data, if you want to generate the script of database with data.
(5) Click Next and Finish this task.