![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can someone explain how could I crate a script of a database? I want to save a Table from a database, so I could play with it and be able to restore it back as required. I have seen some databases saved as scripts, like Northwin.sql. I have look for examples on how to create these scripts of the tables or databases, but I haven't found anything. |
#3
| |||
| |||
|
|
You open Enterprise Manager and right click on the database node and choose "All Tasks" then "Generate SQL Script". From there you can choose which objects to script and what options you need. -- Andrew J. Kelly SQL MVP "HLong" <HLong (AT) discussions (DOT) microsoft.com> wrote in message news:A64615DA-88EB-4FE1-9438-21341262C15C (AT) microsoft (DOT) com... Can someone explain how could I crate a script of a database? I want to save a Table from a database, so I could play with it and be able to restore it back as required. I have seen some databases saved as scripts, like Northwin.sql. I have look for examples on how to create these scripts of the tables or databases, but I haven't found anything. |
#4
| |||
| |||
|
|
Yes, it works fine. However, I can't fine a way on scripting the data with INSERT staments so the entire table or datable could be recreated. How could I do this? "Andrew J. Kelly" wrote: You open Enterprise Manager and right click on the database node and choose "All Tasks" then "Generate SQL Script". From there you can choose which objects to script and what options you need. -- Andrew J. Kelly SQL MVP "HLong" <HLong (AT) discussions (DOT) microsoft.com> wrote in message news:A64615DA-88EB-4FE1-9438-21341262C15C (AT) microsoft (DOT) com... Can someone explain how could I crate a script of a database? I want to save a Table from a database, so I could play with it and be able to restore it back as required. I have seen some databases saved as scripts, like Northwin.sql. I have look for examples on how to create these scripts of the tables or databases, but I haven't found anything. |
#5
| |||
| |||
|
|
Yes, it works fine. However, I can't fine a way on scripting the data with INSERT staments so the entire table or datable could be recreated. How could I do this? "Andrew J. Kelly" wrote: You open Enterprise Manager and right click on the database node and choose "All Tasks" then "Generate SQL Script". From there you can choose which objects to script and what options you need. -- Andrew J. Kelly SQL MVP "HLong" <HLong (AT) discussions (DOT) microsoft.com> wrote in message news:A64615DA-88EB-4FE1-9438-21341262C15C (AT) microsoft (DOT) com... Can someone explain how could I crate a script of a database? I want to save a Table from a database, so I could play with it and be able to restore it back as required. I have seen some databases saved as scripts, like Northwin.sql. I have look for examples on how to create these scripts of the tables or databases, but I haven't found anything. |
![]() |
| Thread Tools | |
| Display Modes | |
| |