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 |
|
parry02
Starting Member
18 Posts |
Posted - 2006-04-05 : 05:21:08
|
| hi I would like to clear all data in a table called ... How do I do that - and before I do it I'd like the data copied to a another table as a backup .... Please guide me .....Thanks in advance ..... |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-04-05 : 05:26:57
|
[code]-- backupselect * into table_backup from yourtable-- clear all datadelete yourtableor truncate table yourtable[/code] KH |
 |
|
|
parry02
Starting Member
18 Posts |
Posted - 2006-04-05 : 05:43:01
|
| select * into Car_trans_backup from Car_transactionsI did that but I'm not sure where the backup table Car_trans_backup is ????? |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-04-05 : 05:59:44
|
| It will be stored in the database where you run that querySee what this gives yousp_help 'Car_trans_backup'MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|