tags:

views:

18

answers:

2

Hi,

Is there any way to load (insert) List into SQL Server Compact 2008 table in simpler way than via looping each record in List and inserting it into database?

+2  A: 

You could generate a single query to do what you want and run the whole query (which will save you from having n calls to ExecuteNonQuery() ), but that still requires looping to generate the query (and a bunch of string building which is just not fun :( )...

LorenVS
A: 

There is also BULK INSERT for such purposes.

ssg