Looking for a Better Way

W

Wayne Wengert

I have an in-memory table I built from some XML input. There is no dataset.
The table acts as the datasource for a datagrid. I now find that I need to
write that entire table to a database (SQL Server). I know I can build the
DB table using CREATE TABLE and then populate it by iterating through the
in-memory table and using Insert Into statements for each row but I thought
I remembered seeing a way to just write the whole table but I can't find any
information on exactly how to do that?

Any ideas?

Wayne
 
K

Ken Tucker [MVP]

Hi,

Take a look at OPENXML

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsql/ac_openxml_1cx8.asp

Ken
--------------------------
I have an in-memory table I built from some XML input. There is no dataset.
The table acts as the datasource for a datagrid. I now find that I need to
write that entire table to a database (SQL Server). I know I can build the
DB table using CREATE TABLE and then populate it by iterating through the
in-memory table and using Insert Into statements for each row but I thought
I remembered seeing a way to just write the whole table but I can't find any
information on exactly how to do that?

Any ideas?

Wayne
 

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

Top