Hi ,
I hv a problem with a OLEDB(for SQL server) Look up.
I look up a table based on a date field.That input field is define as a char of 10.The look up table has the date as timestamp format.When i try looking up it says
Value treated as NULL
Attempt to convert String value "2003-09-15" to Timestamp type unsuccessful
The same thing works well with ODBC.Wat is the Pblm.How can i resolve it ?
OLEDB look up condition
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 90
- Joined: Mon Dec 08, 2003 4:48 am
- Location: Chennai
OLEDB look up condition
Think Ahead,
Raj.D
Raj.D
-
- Participant
- Posts: 81
- Joined: Wed Jul 14, 2004 3:18 am
- Location: Johannesburg, South Africa
- Contact:
In the lookup condition, try:
where DateField is your 10 character date field. This way it will look up in proper timestamp format, e.g. "2003-09-15 00:00:00.000" and not just "2003-09-15"
Code: Select all
DateField : " 00:00:00.000"
Morney le Roux
There are only 10 kinds of people: Those who understand binary and those who don't.
There are only 10 kinds of people: Those who understand binary and those who don't.
-
- Participant
- Posts: 90
- Joined: Mon Dec 08, 2003 4:48 am
- Location: Chennai