PC Review


Reply
Thread Tools Rate Thread

DB insertion question

 
 
^MisterJingo^
Guest
Posts: n/a
 
      21st Aug 2006
Hi all,

I have an asp.net page which allows a user to upload an xml file. The
file is parsed for 2 fields (forename, surname), the result is placed
in a dataset.
I next check to see if the user contains specific information in the
DB, if they don't that data is then inserted.

To do this I foreach through the dataset table, first checking the DB
(SELECT) to see if the user returns any records, if they don't, a
second query is used to insert the needed data.
Each pass of the foreach I create a new query, add the needed
parameters (fore/surname), for the SELECT and INSERT parts.
Im getting 'too many connection errors' using this approach. How would
others approach such a problem?

For each dataset row check user record contains certain data.
If Data doesn't exist, place it in the DB.
The xml can contain hundreds or evern thousands of entries.

Any help would be appreciated!

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGF2aWQgSmVzc2Vl?=
Guest
Posts: n/a
 
      21st Aug 2006
What's your database? Access, SQL, etc?

"^MisterJingo^" wrote:

> Hi all,
>
> I have an asp.net page which allows a user to upload an xml file. The
> file is parsed for 2 fields (forename, surname), the result is placed
> in a dataset.
> I next check to see if the user contains specific information in the
> DB, if they don't that data is then inserted.
>
> To do this I foreach through the dataset table, first checking the DB
> (SELECT) to see if the user returns any records, if they don't, a
> second query is used to insert the needed data.
> Each pass of the foreach I create a new query, add the needed
> parameters (fore/surname), for the SELECT and INSERT parts.
> Im getting 'too many connection errors' using this approach. How would
> others approach such a problem?
>
> For each dataset row check user record contains certain data.
> If Data doesn't exist, place it in the DB.
> The xml can contain hundreds or evern thousands of entries.
>
> Any help would be appreciated!
>
>

 
Reply With Quote
 
^MisterJingo^
Guest
Posts: n/a
 
      21st Aug 2006
David Jessee wrote:
> What's your database? Access, SQL, etc?
>


Ah, sorry about that, I should have included it in my first post. I
have to use MySQL on this project.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on VBA Insertion of Additional Sheet golf4wff@hotmail.com Microsoft Excel Programming 3 29th Apr 2009 12:54 AM
C# insertion of a record with CurrencyManager AddNew() method during the insertion of a father table record (with CurrencyManager AddNew() too) polocar Microsoft C# .NET 0 27th Sep 2006 06:51 PM
Insertion Question Continue spacejones@gmail.com Microsoft Access 6 13th Jan 2006 11:32 PM
Insertion Question (Access 2002, SQL, VBA) spacejones@gmail.com Microsoft Access 5 13th Jan 2006 10:43 PM
A quick question: How to use variables in the SQL insertion string =?Utf-8?B?d2RsaQ==?= Microsoft ADO .NET 4 28th Jun 2005 10:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:59 AM.