Click here to Skip to main content
15,905,420 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL error Pin
Mike Dimmick20-Nov-06 0:52
Mike Dimmick20-Nov-06 0:52 
GeneralRe: SQL error Pin
walalawll29-Nov-06 21:22
walalawll29-Nov-06 21:22 
QuestionTimeout exception error Pin
Lior S19-Nov-06 4:04
Lior S19-Nov-06 4:04 
AnswerRe: Timeout exception error Pin
Colin Angus Mackay19-Nov-06 4:58
Colin Angus Mackay19-Nov-06 4:58 
AnswerRe: Timeout exception error Pin
ThaScorpion19-Nov-06 13:44
ThaScorpion19-Nov-06 13:44 
QuestionDatatype mismatch...column type date/time Pin
Skcheng18-Nov-06 17:09
Skcheng18-Nov-06 17:09 
AnswerRe: Datatype mismatch...column type date/time Pin
Rob Graham19-Nov-06 6:19
Rob Graham19-Nov-06 6:19 
GeneralRe: Datatype mismatch...column type date/time [modified] Pin
Skcheng19-Nov-06 8:57
Skcheng19-Nov-06 8:57 
Hehe, oops, here is some of the trouble code:
userDS.UserSessionInfo.AddUserSessionInfoRow(CurrentUser,myDate,false,false,"",false,"");

when myDate is:
DateType myDate = DateTime.Now;

and the table structure for UserSessionInfo is:

UserSessionPkey --> int (autoincrement row, primary key)
UserPkey --> int (foreign key)
SessionDate --> dateType
ErrorsGen --> boolean
Training --> boolean
TrainingType --> string
Testing --> boolean
TestingType --> string

The above doesn't work and generates a datetype mismatch type error. But when I change it to the following, it works fine:
string myDate = DateTime.Now.ToString();

and the table structure for UserSessionInfo is:

UserSessionPkey --> int (autoincrement row, primary key)
UserPkey --> int (foreign key)
SessionDate --> string
ErrorsGen --> boolean
Training --> boolean
TrainingType --> string
Testing --> boolean
TestingType --> string

In my MS Access database, the column for SessionDate is of type Date/Time, with no formatting specified. When I change myDate to be a string, it works fine, even though I did not change the type in the Access database.

I know I've got a work around, by using strings, but I'm curious if anyone knows why this is happening.

TIA!




-- modified at 17:17 Sunday 19th November, 2006

~~~~~~~~~~~~
Dead | X| Over-worked, under-paid, glorified "secretary" Sigh | :sigh:

GeneralRe: Datatype mismatch...column type date/time Pin
Skcheng19-Nov-06 11:06
Skcheng19-Nov-06 11:06 
AnswerRe: Datatype mismatch...column type date/time Pin
Scott Holt20-Nov-06 16:17
Scott Holt20-Nov-06 16:17 
GeneralRe: Datatype mismatch...column type date/time Pin
Skcheng20-Nov-06 16:29
Skcheng20-Nov-06 16:29 
QuestionSQL trigger , Pin
drequinox18-Nov-06 4:48
drequinox18-Nov-06 4:48 
QuestionExtracting date part in SQL server Pin
ThaScorpion17-Nov-06 14:41
ThaScorpion17-Nov-06 14:41 
AnswerRe: Extracting date part in SQL server Pin
Janani Divya17-Nov-06 18:00
Janani Divya17-Nov-06 18:00 
GeneralRe: Extracting date part in SQL server Pin
ThaScorpion18-Nov-06 14:05
ThaScorpion18-Nov-06 14:05 
GeneralRe: Extracting date part in SQL server Pin
indianet19-Nov-06 13:11
indianet19-Nov-06 13:11 
GeneralRe: Extracting date part in SQL server Pin
ThaScorpion19-Nov-06 13:40
ThaScorpion19-Nov-06 13:40 
GeneralRe: Extracting date part in SQL server Pin
Janani Divya19-Nov-06 15:19
Janani Divya19-Nov-06 15:19 
GeneralRe: Extracting date part in SQL server Pin
ThaScorpion20-Nov-06 11:31
ThaScorpion20-Nov-06 11:31 
GeneralRe: Extracting date part in SQL server Pin
Janani Divya20-Nov-06 18:21
Janani Divya20-Nov-06 18:21 
QuestionHow do i run a query with a external text file's data Pin
gashach17-Nov-06 6:06
gashach17-Nov-06 6:06 
QuestionRegular expression in mysql Pin
Mitesh Jain17-Nov-06 2:02
Mitesh Jain17-Nov-06 2:02 
AnswerRe: Regular expression in mysql Pin
Chris Meech17-Nov-06 3:27
Chris Meech17-Nov-06 3:27 
Questionre: creating package in vb.net Pin
rrrriiizz16-Nov-06 22:39
rrrriiizz16-Nov-06 22:39 
AnswerRe: re: creating package in vb.net Pin
Paddy Boyd16-Nov-06 23:56
Paddy Boyd16-Nov-06 23:56 

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.