Click here to Skip to main content
15,902,938 members
Home / Discussions / Database
   

Database

 
GeneralRe: query a dateTime row Pin
Michael Potter18-May-05 8:28
Michael Potter18-May-05 8:28 
GeneralErrors from DTS package Pin
leezardd18-May-05 5:01
leezardd18-May-05 5:01 
GeneralStored procedure Pin
nitin_ion18-May-05 1:17
nitin_ion18-May-05 1:17 
GeneralRe: Stored procedure Pin
Colin Angus Mackay18-May-05 1:25
Colin Angus Mackay18-May-05 1:25 
GeneralRe: Stored procedure Pin
nitin_ion18-May-05 2:04
nitin_ion18-May-05 2:04 
GeneralRe: Stored procedure Pin
maka230318-May-05 2:13
maka230318-May-05 2:13 
Questionhow do i read date time from mysql? Pin
Sasuko17-May-05 13:12
Sasuko17-May-05 13:12 
AnswerRe: how do i read date time from mysql? Pin
Christian Graus17-May-05 13:44
protectorChristian Graus17-May-05 13:44 
Assuming that dtTime is properly converting to a value within the query that mySQL understands ( that is, that the default toString() does what you need ), and assuming that 'Data >=' is a typo above, and Date is being checked in both instances, this will only return rows where the Date column is equal to or greater than the moment when you make the query. If dtTime2 also = DateTime.Now, the odds of a match drop sharply.

Assuming this is dummy code to show the basic approach, I'd suggest you need to open a table in mySQL and see how it stores the dates, then format your datetime to be the same. It's probably YYYYMMDD:HHMMSSSS, assuming that time is also stored. The DateTime class has a property to return a string in this format, but it's name escapes me right now.


Christian Graus - Microsoft MVP - C++
GeneralRe: how do i read date time from mysql? Pin
Anonymous17-May-05 21:14
Anonymous17-May-05 21:14 
GeneralRe: how do i read date time from mysql? Pin
Sasuko18-May-05 2:40
Sasuko18-May-05 2:40 
GeneralRe: how do i read date time from mysql? Pin
Sasuko18-May-05 2:49
Sasuko18-May-05 2:49 
AnswerRe: how do i read date time from mysql? Pin
Luis Alonso Ramos17-May-05 21:18
Luis Alonso Ramos17-May-05 21:18 
GeneralRe: how do i read date time from mysql? Pin
Colin Angus Mackay17-May-05 22:34
Colin Angus Mackay17-May-05 22:34 
GeneralRe: how do i read date time from mysql? Pin
Luis Alonso Ramos18-May-05 5:16
Luis Alonso Ramos18-May-05 5:16 
Generaldeleting question Pin
Sasuko17-May-05 8:06
Sasuko17-May-05 8:06 
GeneralRe: deleting question Pin
Sasuko17-May-05 8:16
Sasuko17-May-05 8:16 
GeneralRe: deleting question Pin
Colin Angus Mackay17-May-05 22:32
Colin Angus Mackay17-May-05 22:32 
GeneralRe: deleting question Pin
Anonymous17-May-05 22:40
Anonymous17-May-05 22:40 
GeneralRe: deleting question Pin
Luis Alonso Ramos18-May-05 5:22
Luis Alonso Ramos18-May-05 5:22 
GeneralRe: deleting question Pin
ravikim200118-May-05 19:50
ravikim200118-May-05 19:50 
GeneralRe: deleting question Pin
Colin Angus Mackay18-May-05 20:25
Colin Angus Mackay18-May-05 20:25 
Generalinsert picture Pin
rohollahabadan17-May-05 2:25
rohollahabadan17-May-05 2:25 
GeneralRe: insert picture Pin
rohollahabadan18-May-05 23:41
rohollahabadan18-May-05 23:41 
QuestionSecure on Lan?? Pin
Member 196994117-May-05 2:21
Member 196994117-May-05 2:21 
AnswerRe: Secure on Lan?? Pin
Colin Angus Mackay17-May-05 3:38
Colin Angus Mackay17-May-05 3:38 

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.