Re: Saving data quickly to a database
- From: "sloan" <sloan@xxxxxxxxx>
- Date: Wed, 9 Jan 2008 10:59:18 -0500
Bulk Insert using Xml is my favorite tool of choice.
See
http://groups.google.com/group/microsoft.public.sqlserver.programming/msg/5491c0640ddf9680
My example is (to me) a better thought out version and better tweaked
version of the one seen here:
http://support.microsoft.com/kb/315968
One key to this approach is that indexes are rebuilt ~after the bulk insert,
which is contrary to the "row by row" way of doing it.
"Jon" <.> wrote in message news:u$$GobtUIHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I plan to import some data from an old DOS-based programme. The data file
format that this programme
produced appears to be proprietary, but I've managed to reverse engineer
the format and have put
together a C# programme to do this.
The data will be imported into a database table.
Do you have any general tips on how store the data to a database (SQL
Server 2005 Express) quickly?
The amount of data could be up to 100Mbytes.
Should I put it into a DataTable first then save this to the database, or
should I send it directly
to the database (eg using SQL), or is there another way?
The data will overwrite anything in the database, so no merging is
required.
Thanks...
.
- Prev by Date: Re: Open Post to the C# Development Team
- Next by Date: Re: Saving data quickly to a database
- Previous by thread: Textbox background color
- Next by thread: Re: Saving data quickly to a database
- Index(es):
Relevant Pages
|