DataTables

B

Brian Shannon

I create a datatable tostore information in as my program is running. When
the program is finished I have about 20 records in the datatable.

I know need to insert these records into an sql2000 DB. I loop through the
table to insert 1 record at a time using the sqlcommand ExecuteNonQuery().

Is there a way to insert all the records from the datatable in 1 statement
to the DB? Here I am making 20 calls the my DB. Hopefully there is a more
efficient way.

If you need more info or more clarification please ask!

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top