how do I insert the string = '06092508262' (date and time) to a field (RODTCREATE) in sql server 2000 with datatype datetime?
What I've tried so far:
dim dtEntered as Date
...
dtEntered = mid(strLine, 68, 11)
...
Insert Into RORDER(RODTCREATE) Values('" & dtEntere & "')"
I suppose the conversion of char to date has to be done in VB rather than the SQL query as a convert/cast cannot be done in an Insert statement.
Please let me know if I should post this question in the SQL Server programming forum.
Thanks!
What I've tried so far:
dim dtEntered as Date
...
dtEntered = mid(strLine, 68, 11)
...
Insert Into RORDER(RODTCREATE) Values('" & dtEntere & "')"
I suppose the conversion of char to date has to be done in VB rather than the SQL query as a convert/cast cannot be done in an Insert statement.
Please let me know if I should post this question in the SQL Server programming forum.
Thanks!