on 05-06-2010 4:37 AM
Hi all,
i am connecting to sql server 2005 through universe designer.
the dates in sql database are in the following format
'YYYYMMDD' -> datatype is character.
Now In the universe i would like to convert datatype 'character' to 'date' .
How to achieve this?
I guess you can use the cast function of the MS SQL server for this.
Regards,
Stratos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You just have to type it in the definition of your object .
instead of having a definition like:
myTable.myColumn
you use
CAST(myTable.myColumn AS DATE)
Please search in the internet for the correct syntax of the CAST function (or maybe CONVERT can also help).
Regards,
Stratos
Edited by: Efstratios Karaivazoglou on May 6, 2010 11:35 AM
hi stratos,
i am able to use the cast or convert function for date field successfully. But when i use same object in webi to build a query i am getting following error.
'Arithmetic overflow error converting expression to data type datetime'
The same above error is occuring when i use for list of values in universe.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.