Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: problems with INSERT to database Pin
valiovalio25-Apr-06 22:53
valiovalio25-Apr-06 22:53 
AnswerRe: problems with INSERT to database Pin
Rob Philpott25-Apr-06 22:34
Rob Philpott25-Apr-06 22:34 
QuestionNUnit Console Pin
Vasudevan Deepak Kumar25-Apr-06 21:26
Vasudevan Deepak Kumar25-Apr-06 21:26 
AnswerRe: NUnit Console Pin
Rob Philpott25-Apr-06 22:42
Rob Philpott25-Apr-06 22:42 
GeneralRe: NUnit Console Pin
Vasudevan Deepak Kumar26-Apr-06 6:00
Vasudevan Deepak Kumar26-Apr-06 6:00 
QuestionRemoving checkbox from datagridview column on certain rows. Pin
tomasaberg25-Apr-06 21:06
tomasaberg25-Apr-06 21:06 
AnswerRe: Removing checkbox from datagridview column on certain rows. Pin
AmitSumit26-Apr-06 0:30
AmitSumit26-Apr-06 0:30 
GeneralRe: Removing checkbox from datagridview column on certain rows. Pin
tomasaberg26-Apr-06 4:26
tomasaberg26-Apr-06 4:26 
QuestionPossible to databind a Winforms DataGrid to a DataReader? Pin
Jakob Farian Krarup25-Apr-06 21:03
Jakob Farian Krarup25-Apr-06 21:03 
QuestionDrawing, Drag Drop Problem in custom control Pin
crazymubashir25-Apr-06 20:56
crazymubashir25-Apr-06 20:56 
Questionhow to deploy a project with framework Pin
dayakar_dn25-Apr-06 20:29
dayakar_dn25-Apr-06 20:29 
AnswerRe: how to deploy a project with framework Pin
abhinish25-Apr-06 21:04
abhinish25-Apr-06 21:04 
GeneralRe: how to deploy a project with framework Pin
dayakar_dn25-Apr-06 22:08
dayakar_dn25-Apr-06 22:08 
QuestionShutdown PC Pin
phucoi25-Apr-06 19:58
phucoi25-Apr-06 19:58 
AnswerRe: Shutdown PC Pin
CWIZO25-Apr-06 21:38
CWIZO25-Apr-06 21:38 
AnswerRe: Shutdown PC Pin
Mohammad Dayyan11-Sep-09 9:29
Mohammad Dayyan11-Sep-09 9:29 
AnswerRe: Shutdown PC Pin
Mohammad Dayyan11-Sep-09 9:29
Mohammad Dayyan11-Sep-09 9:29 
QuestionHow to retrieve attribute of type Time without time zone from postgreSQL? Pin
Kranti125198425-Apr-06 19:09
Kranti125198425-Apr-06 19:09 
Hello,

I am writing one simple C# .NET application in which I have to use some values retrieved from the database. But when I try to retrieve value of attribute of type Time without time zone it generates following exception


{"Index was outside the bounds of the array."}
System.Exception {System.IndexOutOfRangeException}


This happens only when I try to retrive this type .. for other attribute types, it is working properly.


My code is ...

//--------------------------------------------------------------

String myQuery = "Select starttime from tblecture";
OdbcCommand myCommand = new System.Data.Odbc.OdbcCommand(myQuery, conn);

OdbcDataReader dataReader = myCommand.ExecuteReader();

while(dataReader.Read())//Exception being generated on this line
{
//code to use database info
}

//--------------------------------------------------------------

Schema of tblecture table is:

Table "public.tblecture"
Column | Type | Modifiers
-----------------+------------------------+----------------------------
lectureid | integer | not null
starttime | time without time zone |


Thanks,
Regards,
Kranti
QuestionAssigning values to RecordNumber in Crystal reports Pin
q2sampath25-Apr-06 18:06
q2sampath25-Apr-06 18:06 
Questioncode for detecting an IP address Pin
raniam25-Apr-06 14:13
raniam25-Apr-06 14:13 
AnswerRe: code for detecting an IP address Pin
Graham Nimbley25-Apr-06 15:03
Graham Nimbley25-Apr-06 15:03 
Questionbitmap from a Graphics object Pin
likefood25-Apr-06 13:28
likefood25-Apr-06 13:28 
AnswerRe: bitmap from a Graphics object Pin
Graham Nimbley25-Apr-06 13:57
Graham Nimbley25-Apr-06 13:57 
GeneralRe: bitmap from a Graphics object Pin
likefood25-Apr-06 14:00
likefood25-Apr-06 14:00 
AnswerRe: bitmap from a Graphics object Pin
Robert Rohde25-Apr-06 18:16
Robert Rohde25-Apr-06 18:16 

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.