Step 1: Open SQL Server and right-click on the specific database (for which you want to create a script).
Right-click on the database then select "Tasks" -> "Generate Scripts...".

Step 2: Now click on the Next Button

Step 3: Click on the Next button

Step 4: Now click on Advanced.

Step 5: Select "Schema and data" then click on OK.

Step 6: Provide the Script Name and location where you want to save it then click on Next.

Step 7: Click on Finish.


Muhammad Abdul MananPosted May 15, 2014, 3:01 PM
hussain bhai tell me about script and its usage plx....
Hussain AhmedPosted May 9, 2014, 3:55 AM
Applicable on all version of SQL server
Hussain AhmedPosted May 9, 2014, 3:05 AM
Sql Server 2008 R2
Nimit JoshiPosted May 9, 2014, 1:16 AM
What is the version of SQL Server?
Rajeev RanjanPosted May 8, 2014, 10:53 PM
this one is a good artical, i always wants to store data to with schema but, lack of knowledge ,thnaks to this post , i understands one more topic in sql server one more topic . thnx hussain sir