Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
Hi All,I have two table and I'm trying to select information from table 1 (testtable) into table 2 (tbldsmCodes). Here what I have so far:SELECT *INTO tbldsmCodesFROM testtableWHERE (ID BETWEEN 332 AND 366)this would work, except there table tbldsmcode already exist. I want to copy the data from testtable to tbldsmCodes. The problem is that when I excute the sql statement I get an error that says the table already exist. It wants to create a the table tbldsmCodes but the table already exist. How do I copy into a table that already exist?