![]() |
| ||
| How to copy distinct records from one table to another using SQL 2005 I have a table on an offline database having let say 2000 rows and same table on an online database with let say 3000 rows. Now I want to copy just those records (1000) from online database that are not in the offline database table. Also, both tables have same name, same schema etc. |
| ||
| Re: How to copy distinct records from one table to another using SQL 2005 What are the keys in the table? |
| ||
| Re: How to copy distinct records from one table to another using SQL 2005 Use differential Backup... or you can use insert select like insert into table1 values (select distinct a,b,c.. from table2) |
| All times are GMT -4. The time now is 7:53 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC