Click here to Skip to main content
15,886,422 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: bitmap from a Graphics object Pin
likefood26-Apr-06 6:54
likefood26-Apr-06 6:54 
GeneralRe: bitmap from a Graphics object Pin
Robert Rohde26-Apr-06 8:03
Robert Rohde26-Apr-06 8:03 
GeneralRe: bitmap from a Graphics object Pin
likefood26-Apr-06 11:05
likefood26-Apr-06 11:05 
QuestionFile Copy Problem (C# Newb) Pin
teejayem25-Apr-06 12:44
teejayem25-Apr-06 12:44 
AnswerRe: File Copy Problem (C# Newb) Pin
Graham Nimbley25-Apr-06 13:21
Graham Nimbley25-Apr-06 13:21 
GeneralRe: File Copy Problem (C# Newb) Pin
teejayem25-Apr-06 13:29
teejayem25-Apr-06 13:29 
AnswerRe: File Copy Problem (C# Newb) Pin
Guffa25-Apr-06 13:23
Guffa25-Apr-06 13:23 
GeneralRe: File Copy Problem (C# Newb) Pin
teejayem25-Apr-06 13:31
teejayem25-Apr-06 13:31 
Questionsum up values in DataTable Pin
kani9825-Apr-06 11:34
kani9825-Apr-06 11:34 
AnswerRe: sum up values in DataTable Pin
Robert Rohde25-Apr-06 19:52
Robert Rohde25-Apr-06 19:52 

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.