How to insert all records into a table only one time
Posted
by Lu Lu
on Stack Overflow
See other posts from Stack Overflow
or by Lu Lu
Published on 2010-04-28T04:45:55Z
Indexed on
2010/04/28
4:53 UTC
Read the original article
Hit count: 335
Hello, I want to get all records from a table1 & insert them into table2. Table1 & table2 are in different databases, table1 and table2 are same structure.
Normally, I will get all records from table1, and for each record (foreach), I will insert it into table2 by using "INSERT ...". I want to know a effect way to insert all records into table only one time without foreach.
I use C#, .NET 2.0 & WinForm.
Thanks.
© Stack Overflow or respective owner