Home All Groups Group Topic Archive Search About

How to populate an empty table in DB?

Author
11 May 2007 5:14 PM
Lubomir
Hi,

I am wondering how I could populate the ampty table in the database from the
DataSet or DataTable.

So far I am using SqlBulkCopy. Is there any other way, or is it I should be
using? I could make Insert row by row, but it is slow, I guess.

Thanks,
Lubomir

Author
11 May 2007 5:34 PM
William (Bill) Vaughn
SqlBulkCopy is the fastest, easiest way...

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

Show quote
"Lubomir" <Lubo***@discussions.microsoft.com> wrote in message
news:BA9DFB23-5B54-4DB4-B995-45470ACA7B45@microsoft.com...
> Hi,
>
> I am wondering how I could populate the ampty table in the database from
> the
> DataSet or DataTable.
>
> So far I am using SqlBulkCopy. Is there any other way, or is it I should
> be
> using? I could make Insert row by row, but it is slow, I guess.
>
> Thanks,
> Lubomir

AddThis Social Bookmark Button