I have a datatable in memory that I got from a non SQL source.
What is the most elegant way, using ADO.NET to push it "as is into a new SQL (2005) server table?
views:
26answers:
3
+5
A:
You'd need to do this as a series of steps. Firstly, creating the table via some dynamic SQL. Then you'd need to load the information from memory into the newly created table, potentially using a BULK INSERT
.
Ardman
2010-08-20 19:00:13
A:
Or create the table on the SQL Server, read one row at a time, and add it to the table.
Beth
2010-08-20 19:16:12