Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: network problem please help!!! Pin
snouto29-Nov-05 23:06
snouto29-Nov-05 23:06 
QuestionBack Button ASP.NET Pin
TheMajorRager29-Nov-05 10:02
TheMajorRager29-Nov-05 10:02 
QuestionCrystal Report setup problem Pin
sasan5629-Nov-05 9:56
sasan5629-Nov-05 9:56 
QuestionCreating a window form Pin
Yevgeny Efter29-Nov-05 8:45
Yevgeny Efter29-Nov-05 8:45 
AnswerRe: Creating a window form Pin
enjoycrack29-Nov-05 9:08
enjoycrack29-Nov-05 9:08 
GeneralRe: Creating a window form Pin
Yevgeny Efter29-Nov-05 9:25
Yevgeny Efter29-Nov-05 9:25 
GeneralRe: Creating a window form Pin
enjoycrack29-Nov-05 10:20
enjoycrack29-Nov-05 10:20 
QuestionFailed to compare Time portion of DateTime when read ACCESS database Pin
Roman Muntyanu29-Nov-05 7:58
Roman Muntyanu29-Nov-05 7:58 
Hi all,
I have datetime field in database. When I am getting records older than
specific date that I passed in parameter I can not get records that
differs only in Time part of the datetime value.
Looks like comparison of Time portion in query failed.

I am using ACCESS database and ADO OleDbCommand. When in debug in Visual Studio QuickWatch clearly can see that the record that am going to get is older than datetime in TimestampParam by 10 sec (for example). If I substract 1 day from the
database field value I am getting the record. It is definetly time
portion comparison failed.

These are some lines from my code to show how I am reading database
OleDbDataAdapter adapter = new OleDbDataAdapter();
myCommand.CommantText = "SELECT [NetLog].* FROM [NetLog] WHERE
Timestamp < TimestampParam"
adapter.SelectCommand = myCommand;
System.Data.DataSet dataSet = new System.Data.DataSet();
int iNumRows = adapter.Fill( dataSet );

I would appreciate any advice

Thanks,
Roman
AnswerRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Rob Philpott29-Nov-05 8:41
Rob Philpott29-Nov-05 8:41 
GeneralRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Roman Muntyanu29-Nov-05 9:19
Roman Muntyanu29-Nov-05 9:19 
GeneralRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Rob Philpott29-Nov-05 11:27
Rob Philpott29-Nov-05 11:27 
GeneralRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Roman Muntyanu30-Nov-05 5:48
Roman Muntyanu30-Nov-05 5:48 
Questioneasy textbox question? Pin
melanieab29-Nov-05 7:36
melanieab29-Nov-05 7:36 
AnswerRe: easy textbox question? Pin
Rob Philpott29-Nov-05 8:02
Rob Philpott29-Nov-05 8:02 
GeneralRe: easy textbox question? Pin
melanieab29-Nov-05 8:15
melanieab29-Nov-05 8:15 
QuestionWeb Service XML to DataGrid - 'System.NullReferenceException' error Pin
tabulation29-Nov-05 7:16
tabulation29-Nov-05 7:16 
AnswerRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
Rob Philpott29-Nov-05 8:51
Rob Philpott29-Nov-05 8:51 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
tabulation29-Nov-05 10:15
tabulation29-Nov-05 10:15 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
Rob Philpott29-Nov-05 11:32
Rob Philpott29-Nov-05 11:32 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
tabulation29-Nov-05 11:46
tabulation29-Nov-05 11:46 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
Rob Philpott29-Nov-05 22:56
Rob Philpott29-Nov-05 22:56 
QuestionDatabase Directory Error Pin
TheMajorRager29-Nov-05 7:00
TheMajorRager29-Nov-05 7:00 
AnswerRe: Database Directory Error Pin
KaptinKrunch29-Nov-05 7:25
KaptinKrunch29-Nov-05 7:25 
GeneralRe: Database Directory Error Pin
TheMajorRager29-Nov-05 10:01
TheMajorRager29-Nov-05 10:01 
QuestionSockets - Intensive I/O Issues Pin
mcljava29-Nov-05 5:09
mcljava29-Nov-05 5:09 

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.