N
Nevyn Twyll
Situation:
I have a bunch of data in a type-specific System.Data.DataTable that matches
a table in my server.
I want to Insert all the data from my DataTable into the SQL Server table
using ADO and a SqlCommand (probably using the Command builder, because I
don't want to hand-code anything). I'm okay with the table's data all being
deleted.
HOWEVER, the table has an Identity Column, and I need to make sure that the
values in my in-memory DataTable are preserved exactly into the SQL Server
Table.
What's the easiest way to do this?
Thanks in advance!
- Nevyn
I have a bunch of data in a type-specific System.Data.DataTable that matches
a table in my server.
I want to Insert all the data from my DataTable into the SQL Server table
using ADO and a SqlCommand (probably using the Command builder, because I
don't want to hand-code anything). I'm okay with the table's data all being
deleted.
HOWEVER, the table has an Identity Column, and I need to make sure that the
values in my in-memory DataTable are preserved exactly into the SQL Server
Table.
What's the easiest way to do this?
Thanks in advance!
- Nevyn