on 02-26-2018 6:52 PM
Hi guys
we recently migrated our database from oracle to SQL. So now I am trying to fix the universes . There is a datetime object in one of the tables and it needs to be converted to Date. The old oracle sql was TRUNC(table1.field1)
Now I have to convert it into SQL so I am trying this:
CAST(table1.field1 as DATE) but it gives me the error "
Expression type not compatible with Object type"
It works fine when I run it in sql server...
Any idea?
Hello,
You need to change the Data Type from DateTime to Date.
Thanks,
Sonet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Normally, Expression type not compatible with Object type mean that object definition data type is not set as same way as your database or if there is a conversion than you have to set it based on that conversation. What's the version of BO are you using? if you did not convert his object, would the object parse? if yes, what is the data type?
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.