Click here to Skip to main content
15,908,015 members
Home / Discussions / Database
   

Database

 
AnswerRe: error Pin
Joe21-Nov-07 19:12
Joe21-Nov-07 19:12 
GeneralRe: error Pin
mahenputta21-Nov-07 19:24
mahenputta21-Nov-07 19:24 
Questionhow to display table column data are starting letter in capital letter Pin
Murugan.nett21-Nov-07 8:28
Murugan.nett21-Nov-07 8:28 
Answercross post Pin
pmarfleet21-Nov-07 8:42
pmarfleet21-Nov-07 8:42 
GeneralRe: cross post Pin
Paul Conrad23-Nov-07 8:33
professionalPaul Conrad23-Nov-07 8:33 
QuestionSql Server 2005 indexing Pin
Chazzysb21-Nov-07 7:21
Chazzysb21-Nov-07 7:21 
AnswerRe: Sql Server 2005 indexing Pin
Hesham Amin21-Nov-07 10:58
Hesham Amin21-Nov-07 10:58 
QuestionReader problem Pin
kjosh21-Nov-07 6:50
kjosh21-Nov-07 6:50 
Hi,

I have one method in the Data Access Layer like the below:

LoadPersonsData()

{

IDataReader reader= db.ExecuteReader("Procedure name");

Now here I need to call another private metho which will load part of data.

PersonData d = new PersonData();

While(reader.read())

{

D.name =reader["fname"];


D.Subdata = LoadSubdata(d, reader);

D.DOB = reader["dob"];

}

D.Subdata = LoadSubdata(d, reader); -- This line is also not getting the result

D.DOB = reader["dob"]; -> The problem here is after loadSubData is called next I am trying to get the next field from reader, Here I am getting

No data exist for the row or column.

How to pass the datareader to LoadSubdata method. I just created the sub method to reduce the complexity complained by the DevPartner tool.

Thanks

AnswerRe: Reader problem Pin
Frank Kerrigan21-Nov-07 10:05
Frank Kerrigan21-Nov-07 10:05 
AnswerRe: Reader problem Pin
Prateek G21-Nov-07 20:24
Prateek G21-Nov-07 20:24 
GeneralRe: Reader problem Pin
Colin Angus Mackay21-Nov-07 22:35
Colin Angus Mackay21-Nov-07 22:35 
GeneralRe: Reader problem Pin
Prateek G21-Nov-07 22:44
Prateek G21-Nov-07 22:44 
GeneralRe: Reader problem Pin
Colin Angus Mackay21-Nov-07 22:50
Colin Angus Mackay21-Nov-07 22:50 
AnswerRe: Reader problem Pin
Colin Angus Mackay21-Nov-07 22:37
Colin Angus Mackay21-Nov-07 22:37 
AnswerRe: Reader problem Pin
Prateek G21-Nov-07 22:56
Prateek G21-Nov-07 22:56 
QuestionAdding values past a field with #VALUE! -- HELP!!! Pin
new_phoenix21-Nov-07 6:20
new_phoenix21-Nov-07 6:20 
QuestionNeed a correction Pin
s3rro21-Nov-07 5:24
s3rro21-Nov-07 5:24 
AnswerRe: Need a correction Pin
Colin Angus Mackay21-Nov-07 5:37
Colin Angus Mackay21-Nov-07 5:37 
GeneralRe: Need a correction Pin
Pete O'Hanlon21-Nov-07 9:58
mvePete O'Hanlon21-Nov-07 9:58 
QuestionStored Procedure Runs Slower than Normal Query Pin
moon_stick21-Nov-07 4:47
moon_stick21-Nov-07 4:47 
AnswerRe: Stored Procedure Runs Slower than Normal Query Pin
Pete O'Hanlon21-Nov-07 5:04
mvePete O'Hanlon21-Nov-07 5:04 
GeneralRe: Stored Procedure Runs Slower than Normal Query Pin
moon_stick21-Nov-07 5:37
moon_stick21-Nov-07 5:37 
GeneralRe: Stored Procedure Runs Slower than Normal Query Pin
Pete O'Hanlon21-Nov-07 10:57
mvePete O'Hanlon21-Nov-07 10:57 
GeneralRe: Stored Procedure Runs Slower than Normal Query Pin
Mark Churchill21-Nov-07 13:23
Mark Churchill21-Nov-07 13:23 
QuestionRe: Stored Procedure Runs Slower than Normal Query Pin
andyharman21-Nov-07 5:26
professionalandyharman21-Nov-07 5:26 

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.