sql server ce - how to insert multiple rows/bulk records in MS SQL CE database with SQL insert statement? -


i insert multiple records (bulk insert) in ms sql ce. can access ce (*.sdf) database via vs 2010 studio.

i googled , found link below bulk insert syntax. inserting multiple rows in single sql query?

i prepared following syntax (just showing 3 records now) :

insert comptegenerals

(company, lineid, account, description1, description2)

values (999999, 1, n'4000', n'clients', n'klanten')

,values (999999, 2, n'4400', n'fournisseurs', n'leveranciers')

,values (999999, 3, n'4510', n'tva à payer', n'verschuldigde btw')

but how can insert bulk records? (since sql ce database re-created regularly (development), don't want add records manually)

please advice.

that syntax not supported sql server compact. can bypass query processor fast inserts, sqlcebulkcopy library simplifies that, available @ http://sqlcebulkcopy.codeplex.com


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -