RVL
asked on
copy from one table to another
Hi
i would like to copy everything from talbe a_dupe to b_dupe
thanks
i would like to copy everything from talbe a_dupe to b_dupe
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Actually if you have an IDENTITY column you need to explicitly name all your columns. Also, don't forget to turn off INDENTITY_INSERT once done.
SET IDENTITY_INSERT b_dupe ON
INSERT INTO b_dupe
SELECT *
FROM a_dupe