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, 11:01 AM EDT
hussain bhai tell me about script and its usage plx....
Hussain AhmedPosted May 8, 2014, 11:55 PM EDT
Applicable on all version of SQL server
Hussain AhmedPosted May 8, 2014, 11:05 PM EDT
Sql Server 2008 R2
Nimit JoshiTOP 100Posted May 8, 2014, 9:16 PM EDT
What is the version of SQL Server?
Rajeev RanjanPosted May 8, 2014, 6:53 PM EDT
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