sql server 2008 copy data from one table to another
2012-03-25 23:03
711 查看
Let us take a look at an example where we will generate script database. In our example, we will just take one table for convenience.
Right Click on Database >> Tasks >> Generate Scripts >>
This will pop up Generate SQL Server Scripts Wizards >> Click on Next >> Select Database >> This will bring up a screen that will suggest to Choose Script Option.
On Choose Script Option Screen of Script Wizard under section Table/View Options Look at Script Data row and Turn the Option to True.
The Next Screen will ask about object types. Select all the objects that are required in the generated script. Depending on the previous screen it will show few more screen requesting details about the objects required in script generation.
On the very last screen it will request output options. Select the desired output options of Script to file, Script to Clipboard or Script New Query Window.3
Clicking on Finish button will generate a review screen containing the required objects along with script generating data.
Clicking on Finish button one more time will generate the requested output.
Similarly, if you want to generate data for only one table, you can right click on the table and follow almost a similar wizard. I am sure this neat feature will help everybody who has been requesting for it for a long time.
Right Click on Database >> Tasks >> Generate Scripts >>
This will pop up Generate SQL Server Scripts Wizards >> Click on Next >> Select Database >> This will bring up a screen that will suggest to Choose Script Option.
On Choose Script Option Screen of Script Wizard under section Table/View Options Look at Script Data row and Turn the Option to True.
The Next Screen will ask about object types. Select all the objects that are required in the generated script. Depending on the previous screen it will show few more screen requesting details about the objects required in script generation.
On the very last screen it will request output options. Select the desired output options of Script to file, Script to Clipboard or Script New Query Window.3
Clicking on Finish button will generate a review screen containing the required objects along with script generating data.
Clicking on Finish button one more time will generate the requested output.
Similarly, if you want to generate data for only one table, you can right click on the table and follow almost a similar wizard. I am sure this neat feature will help everybody who has been requesting for it for a long time.
相关文章推荐
- SQL SERVER – Insert Data From One Table to Another Table – INSERT INTO SELECT – SELECT INTO TABLE
- Insert Data From One Table to Another
- Copy a table from one database to another in SQL Server 2005
- Copy Records From One Data Block To Another Data Block In Oracle Forms
- 从一个表的数据拷贝到另一个表,Copy all columns from one table to another table:
- Transferring Data from One Table to Another
- mysql copy data from table to another
- Copy a table from one DB to another
- BAPI to Copy Materials from one Plant to Another
- Copy all files recursively from one folder to another
- Move all database objects from one tablespace to another
- BAPI to Copy Materials from one Plant to Another
- BW--ABAP to copy aggregates from one cube to another
- [NPM] Pipe data from one npm script to another
- BAPI to Copy Materials from one Plant to Another
- BW--ABAP to copy aggregates from one cube to another
- BAPI to Copy Materials from one Plant to Another
- BW--ABAP to copy aggregates from one cube to another
- BAPI to Copy Materials from one Plant to Another
- BW--ABAP to copy aggregates from one cube to another