Help with insert DataTable into database.

I have a datatable that has 4 columns and a SQL Table with 5 columns named telephone_numbers. I need to insert the datatable records into the SQL table.

The SQL table is a child table with an ID column(Does not auto increment). I have to do an insert first in the parent table and an ID int is returned. I have the ID already, I just need to add this ID value to the child table to associate the inserted records with the parent record.

How can I do this?

by barcode0527 via /r/csharp

Leave a Reply