Click here to Skip to main content
15,885,366 members
Home / Discussions / Database
   

Database

 
AnswerRe: stored procedure problem Pin
Fariborz Golara11-Dec-05 22:33
Fariborz Golara11-Dec-05 22:33 
QuestionPassword Pin
kenexcelon11-Dec-05 6:53
kenexcelon11-Dec-05 6:53 
AnswerRe: Password Pin
Colin Angus Mackay11-Dec-05 21:03
Colin Angus Mackay11-Dec-05 21:03 
AnswerRe: Password Pin
Al Ortega12-Dec-05 13:04
Al Ortega12-Dec-05 13:04 
QuestionArchitecture of .Net windows applications problem Pin
Fariborz Golara11-Dec-05 4:47
Fariborz Golara11-Dec-05 4:47 
AnswerRe: Architecture of .Net windows applications problem Pin
Colin Angus Mackay11-Dec-05 4:50
Colin Angus Mackay11-Dec-05 4:50 
GeneralRe: Architecture of .Net windows applications problem Pin
Michael P Butler11-Dec-05 5:03
Michael P Butler11-Dec-05 5:03 
GeneralRe: Architecture of .Net windows applications problem Pin
Colin Angus Mackay11-Dec-05 6:05
Colin Angus Mackay11-Dec-05 6:05 
Here is an existing blog entry on the subject: http://weblogs.asp.net/fbouma/archive/2003/05/13/6966.aspx[^]

The main reason for me is that DataSets contain way to much functionality for most of what I ever want to do. Generally I only ever want to have one copy of data in memory at once. If I were to use datasets the DataAdapter would use the DataReader to get the information from the database anyway, then it would store it in the DataSet (copy one), which I would most likey transfer to my business objects (copy two) and then propogate to the user interface (copy three). I much prefer getting the information from a DataReader and controlling exacly what I do with it. (Maybe I'm just a control freak).

Generally I don't need to have referential integrity in a DataSet, or know a great detail about the table structure. Often, I will just create the business objects - one per row from the data reader. In fact, most of my SQL queries don't represent actual tables, but some sort of flattened view or the result of some aggregation or calculation. Certainly, there is absolutely no point in using a dataset if the results are going to be immediately streamed out to a file or the like because all you do is get the data, waiting for the dataset to be built, then stream it out.

I would say that if you are using databinding alot they are useful.

A quick way, I think, of determining if you can throw away the dataset is this: Are you creating the dataset, pulling the data into some other structure (your business objects, for example) then throwing away the dataset? If the answer is "yes", then you can get rid of the dataset.


My: Blog | Photos

"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious


Question"show create table" equivalent in MSSQL Pin
karanba11-Dec-05 1:58
karanba11-Dec-05 1:58 
AnswerRe: "show create table" equivalent in MSSQL Pin
Colin Angus Mackay11-Dec-05 4:48
Colin Angus Mackay11-Dec-05 4:48 
GeneralRe: "show create table" equivalent in MSSQL Pin
karanba11-Dec-05 5:01
karanba11-Dec-05 5:01 
GeneralRe: "show create table" equivalent in MSSQL Pin
Colin Angus Mackay11-Dec-05 5:15
Colin Angus Mackay11-Dec-05 5:15 
AnswerRe: "show create table" equivalent in MSSQL Pin
Fariborz Golara11-Dec-05 10:21
Fariborz Golara11-Dec-05 10:21 
GeneralRe: "show create table" equivalent in MSSQL Pin
Colin Angus Mackay12-Dec-05 4:55
Colin Angus Mackay12-Dec-05 4:55 
AnswerRe: "show create table" equivalent in MSSQL Pin
Mike Dimmick12-Dec-05 5:34
Mike Dimmick12-Dec-05 5:34 
GeneralRe: "show create table" equivalent in MSSQL Pin
karanba12-Dec-05 22:14
karanba12-Dec-05 22:14 
Questionfocus on row Pin
NikoTanghe9-Dec-05 22:50
NikoTanghe9-Dec-05 22:50 
Questionquestion Pin
eyalso9-Dec-05 22:05
eyalso9-Dec-05 22:05 
AnswerRe: question Pin
Colin Angus Mackay10-Dec-05 7:34
Colin Angus Mackay10-Dec-05 7:34 
QuestionADO with VS.Net Query Failure when Time is selected Pin
K.J.B.9-Dec-05 13:07
K.J.B.9-Dec-05 13:07 
Questionmanaging long data types Pin
kasko_9-Dec-05 11:42
kasko_9-Dec-05 11:42 
QuestionInconsistent Read issues Pin
tsramkumar9-Dec-05 9:31
tsramkumar9-Dec-05 9:31 
Questionadp.Fill method pooling issues Pin
Joshua Lunsford9-Dec-05 7:57
Joshua Lunsford9-Dec-05 7:57 
AnswerRe: adp.Fill method pooling issues Pin
Farhan Noor Qureshi9-Dec-05 12:00
Farhan Noor Qureshi9-Dec-05 12:00 
QuestionHelp - I'm a Novice - SQL Query Problem Pin
kabatlantafan79-Dec-05 5:20
kabatlantafan79-Dec-05 5:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.