469,934 Members | 1,847 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

DataSet OR Dataview

hi,
I have a three tier application, I have a method in the datalayer which
should either return a (dataset or dataview or datrow), i need to know which
should be the best possible option, are there any links or documents which
can help me understand.

Thanx in advance.

Prasad
Jul 21 '05 #1
2 1149
I don't know about specific articles, but there is one thing that we
learned the hard way that you you might want to know about. Dataset and
DataTable objects are serializable while DataView and DataRow objects
are not. If you are planning on crossing process boundaries (as when
you have physically separate tiers) you'll get non-serializable errors
unless you take special steps on your own to deal with this issue.

Have A Better One!

John M Deal

Prasad Patil wrote:
hi,
I have a three tier application, I have a method in the datalayer which
should either return a (dataset or dataview or datrow), i need to know which
should be the best possible option, are there any links or documents which
can help me understand.

Thanx in advance.

Prasad

Jul 21 '05 #2
In order for a DataView to be of any use, it needs a reference to a
DataTable. You can always create a view locally, but as John mentioned,
Views aren't serializable so that's going to take a lot of fun out of trying
to remote them.

Go with a DataTable/DataSet

--
W.G. Ryan MVP (Windows Embedded)

TiBA Solutions
www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"John M Deal" <jo******@necessitysoftware.com> wrote in message
news:#l**************@TK2MSFTNGP12.phx.gbl...
I don't know about specific articles, but there is one thing that we
learned the hard way that you you might want to know about. Dataset and
DataTable objects are serializable while DataView and DataRow objects
are not. If you are planning on crossing process boundaries (as when
you have physically separate tiers) you'll get non-serializable errors
unless you take special steps on your own to deal with this issue.

Have A Better One!

John M Deal

Prasad Patil wrote:
hi,
I have a three tier application, I have a method in the datalayer which
should either return a (dataset or dataview or datrow), i need to know which should be the best possible option, are there any links or documents which can help me understand.

Thanx in advance.

Prasad

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Arthur Dzhelali | last post: by
4 posts views Thread by suzy | last post: by
2 posts views Thread by Dennis | last post: by
13 posts views Thread by Lars Netzel | last post: by
3 posts views Thread by Freeon | last post: by
1 post views Thread by rn5a | last post: by
11 posts views Thread by Sid Price | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.