Best data structure for a large database application



Hi,

I have a really large db application and it needs to do basic operation such as insert, modify, and delete records...

For example, one of the task is to read about 30 000 entries in the Excel file and import it to the database.

What is the best data structure to be used in this situation? (dataset, arraylist, etc...) ?

Thanks for your help
TungVanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

winsoftechCommented:
its good to use dataset
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
grayeCommented:
Actually, I wouldn't be too concerned about the "data base structure" at the client end.... as much as how I plan to manipulate the data at the server end.  The "traditonal" ADO.Net disconnected model isn't well suited for doing 30,000 inserts into a database.

So, I'd be thinking about how I could iterate thru the Excel file in "chunks" and use stored procedures at the database end to do the inserts.

...this making sense?

Tell us more about the language you're using (VB.net?), the version of the .Net framework (v2.0?), and the database (SQL Server 2005?), etc.
0
TungVanAuthor Commented:
>graye

I am using C#, .Net 1.1 and SQL Server 2000
0
grayeCommented:
OK, that's what we needed to know.

Here is a good article on how to simulate a "bulk copy" inserts using XML and stored procedures.
http://support.microsoft.com/default.aspx?scid=kb;en-us;315968

I'd put my effort on that "end" of the solution, and not worry about how to store the data in the client.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.