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.
| Author |
Topic |
|
Mopani
Yak Posting Veteran
55 Posts |
Posted - 2009-07-05 : 01:38:30
|
| How would I populate a table in database1, with data from a table in database2. The tables are identical in structure. |
|
|
Mopani
Yak Posting Veteran
55 Posts |
Posted - 2009-07-05 : 01:50:57
|
| Or ..How could I duplicate an entire database, preserving data, primary and foreign key structures, views, as well as stored procedures? |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-07-05 : 02:13:29
|
quote: Originally posted by Mopani Or ..How could I duplicate an entire database, preserving data, primary and foreign key structures, views, as well as stored procedures?
Backup the database and then restore to it as a new database.Check out BOL on BACKUP DATABASE and RESTORE DATABASE KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
Mopani
Yak Posting Veteran
55 Posts |
Posted - 2009-07-05 : 02:23:51
|
| pretty painless, thank you.I should have been able to think of that :) |
 |
|
|
|
|
|