Is there a tool or special query to do that. I'm not an database administrator.
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
Do you mean generating data script? If it is so then simply right click on the database name -Generate Scripts. In the advanced option in the wizard you get to choose "Type Of data script to add". Select data only there and you can get the data script
Have you tried using SSMS tool pack? It is one of the best addins for SSMS.
to what format? are you only referring to 1 table or the whole database?
if you are exporting to an excel file from 1 table then all you have to do is run a sql query statement to display all records then highlight all rows thru clicking on the top most right space of the grid and right click copy with column headers.
open excel and paste.
should be good to go.
Here are the steps to generate the scripts from a database along with data. The screenshots were taken using
SQL Server 2012 Management Studio
but I believe that the steps are similar for SQL Server 2008 as well.Tasks --> Generate Scripts...
Next
button.Script entire database and all database objects
checked. You can also select the optionSelect specific database objects
and pick the objects of your choice.Advanced
button.Types of data to script
. By default, this is set toSchema only
, which means it will generate only the create object statements. If you want both object creation script along with data, select the optionSchema and data
. Click OK on the Advanced Scripting Options dialog and click Next on the Set Scripting Options stepScripting the entire AdventureWorks database turned to be a huge
522 MB
script file!Hope that helps.