Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sql server 2008 R2

Posted on 2011-02-18
8
Medium Priority
?
294 Views
Last Modified: 2012-08-13
I have some tables that have data there. My plan is to have one .sql to do the following:

1. The script will have create table code and all of the data in the table will be in the script as well.

for example. I have table customer and have column first name, last name with data John Smith.
I want to get script from sql server 2008. Included the table structure and the data into one script. Does it seem possible?

Thanks,
0
Comment
Question by:Webboy2008
  • 4
  • 3
8 Comments
 
LVL 12

Expert Comment

by:mcv22
ID: 34930972
0
 

Author Comment

by:Webboy2008
ID: 34931163
How about sql server 2005.?
0
 

Author Comment

by:Webboy2008
ID: 34931332
And I tried my sql server 2008. I don't see the option there.
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 34931362
>>How about sql server 2005.? <<
"Script Data option is new with Microsoft SQL Server 2008"

>>And I tried my sql server 2008. I don't see the option there.<<
Are you using the Express Edition?
0
 

Author Comment

by:Webboy2008
ID: 34931403
It is Sql 2008 Server. Not express
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 34934068
Ok.  So what option is not there?
0
 

Author Comment

by:Webboy2008
ID: 34964507
Script Data = True is not there.
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 2000 total points
ID: 34966972
Right.  By default it is not there.  You have to change it from Script Data = False to Script Data = True.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question