SQL Server 2000
I backup a table like below:
select * into bkp_table from src_table;
How can I restore from backup table to source table? Truncate the src_table? Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes
now if you have an identity column, you need to do
SET IDENTITY_INSERT src_table ONafter the truncate (the truncate will reset it to 0 BTW)Then do you insert and then
SET IDENTITY_INSERT src_table OFF