HighTechTalks DotNet Forums  

Passing ArrayLists to DB

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss Passing ArrayLists to DB in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ken
 
Posts: n/a

Default Passing ArrayLists to DB - 10-07-2004 , 02:05 PM






Hi,
I have to pass large objects (class intances) to SQL 2000 DB. The objects
usually contains ArrayLists of other objects (also classes intances). The
objects are returning from the client and some of their data was maybe
modified by the user. The final update is being done using stored procedures.
Few questions:
1. What would be the best systematic way to find out what properties in the
object was modified - taking into account that some of the properties are
collection of other objects?

2. I would like to be as chunky as possible but without updating what need
not to be updated. So on one hand I want to pass the data with the minimum
numbers of calls to the DB, and on the other hand I don't want to send the
whole object and update data the the user did not modified. This is
especially important with the Arraylist as any update means locking a row in
the table for nothing.

3. What would be the best way to pass the ArrayLists as parameters to the
stored procedure? I was thinking converting them to datasets or to xml
strings?

Thanks,

--
Ken

Reply With Quote
  #2  
Old   
Ken
 
Posts: n/a

Default RE: Passing ArrayLists to DB - 10-08-2004 , 01:37 PM






This question was unswered in the ditributed application newsgroup.
Thanks,
Ken

"Ken" wrote:

Quote:
Hi,
I have to pass large objects (class intances) to SQL 2000 DB. The objects
usually contains ArrayLists of other objects (also classes intances). The
objects are returning from the client and some of their data was maybe
modified by the user. The final update is being done using stored procedures.
Few questions:
1. What would be the best systematic way to find out what properties in the
object was modified - taking into account that some of the properties are
collection of other objects?

2. I would like to be as chunky as possible but without updating what need
not to be updated. So on one hand I want to pass the data with the minimum
numbers of calls to the DB, and on the other hand I don't want to send the
whole object and update data the the user did not modified. This is
especially important with the Arraylist as any update means locking a row in
the table for nothing.

3. What would be the best way to pass the ArrayLists as parameters to the
stored procedure? I was thinking converting them to datasets or to xml
strings?

Thanks,

--
Ken

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.