Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Create Table

Author  Topic 

DarkConsultant
Starting Member

17 Posts

Posted - 2008-04-21 : 07:40:14
Hi,

I am using SQL 2005 Express and have built a table that I need to drop and re-create regularly. If I right-click on the table and select 'Script Table as' and then 'CREATE To' and 'New Query Editor Window' I am presented with the script to recreate the table. However this will create an empty table, how do I save a script to recreate the table with data. I have seen a script that had rows of INSERT INTO .. after the main part of the script. I assume this is doing the data build, so how do I create a script with all of the data 'INSERTED INTO'.

I apologise if this query is a bit basic but I cannot find the words to search for the problem, .... if that makes sense.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-04-21 : 07:45:48
This http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=53993 ?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

DarkConsultant
Starting Member

17 Posts

Posted - 2008-04-21 : 11:25:49
Dear Peso,

That is EXACTLY what I need, thanks a million.

Good luck with the yaks ...
Go to Top of Page
   

- Advertisement -