Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

Returning Data

I am creating a data access class and I was wondering what is the best way to return data to my business objects?

1. Recordset
2. Recordset to Variant array
3. Recordset to xml
4. Recordset to collection
5. Recordset to dictionary object
6. Some other way

I know best can mean a lot of things to a lot of people and I know all projects are different but nonetheless, I am interested to hear what everyone has to say.

Thanx


0
Tmess
Asked:
Tmess
1 Solution
 
Hornet241Commented:

XML would probably be the best, after your app is complete you can use the same object and add to the XML for a different app.
0
 
gbarenCommented:
The world (ie: Microsoft) seems to be going the XML route. Seconded.
0
 
ianouiiCommented:
it depends on what type of data u're carrying. u can choose the method according to your requirements. here are some views from me. Hope it helps.

1) large data, XML isn't appropriate coz it's flat file accessing.

2) Hierarchical data, XML serves the best. ease of extending sub trees.

3) cross link or complicated data. collection or dictionary should serve the purpose.

good luck.
0
 
morgan_peatCommented:
Yep - I agree with the XML thing. You're only passing around a String data type, which is v. fast to marshal across processes.
Very flexible, very fast for small amounts of data.
0
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.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now