Home All Groups Group Topic Archive Search About

DataSet Bulk Load Question

Author
21 Mar 2006 8:12 PM
xenophon
I have a DataSet with column schemata that matches a MSSQL
2000 table. I want to bulk insert all of the data (4000 rows) into the
database without creating a SQL-Insert statement. The data is already
validated and scrubbed, and speed is not all that important. Is there
a way to use SqlXml from C# to pump the data to the server (SQLXML is
not installed on the database server).

    Thanks.

Author
21 Mar 2006 9:46 PM
William (Bill) Vaughn
The 2.0 Framework's SqlClient data provider exposes SqlBulkCopy. If you're
targeting SS databases, this is the way to go. Do not use XML unless you are
being paid by the hour to watch the data crawl into your server.

--
William (Bill) Vaughn
President and Founder Beta V Corporation
Redmond, WA
(425) 556-9205
Microsoft MVP, Author, Mentor
Microsoft MVP
Show quote
"xenophon" <xenophon@online.nospam> wrote in message
news:hhn022l972kbpnpfg022j1st3704edvvmn@4ax.com...
> I have a DataSet with column schemata that matches a MSSQL
> 2000 table. I want to bulk insert all of the data (4000 rows) into the
> database without creating a SQL-Insert statement. The data is already
> validated and scrubbed, and speed is not all that important. Is there
> a way to use SqlXml from C# to pump the data to the server (SQLXML is
> not installed on the database server).
>
> Thanks.

AddThis Social Bookmark Button