I want to convert a database into an sql script so that i can recreate it elsewhere. I want the copy to be same as original.
How do i do that ?
You can generate DB Script using Management Studio through available option.
Right Click on Database -> Task -> Generate Scripts

Type of Data to script, select its value to Schema and Data. then it will also include the data.In SQL Management Studio, right click on the database, select Tasks->Generate Scripts. It will guide you through a wizard.