Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 211 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Date filter having sql server as data source not working in obiee 11g

Hi,
I am using sql server as data source in obiee 11g but when I am using any date field in filters in reports its giving error as :
[ODBC SQL Server Driver][SQL Server]'TO_DATE' is not a recognized built-in function name.
I checked the physical query and found that to_date is applied in where clause. The report is working without date filter and report is having date column.
Can anybody suggest how I can fix this issue in OBIEE.
Thank You
Answers
-
What odbc connector are you using to connect to your physical data source?
When you say checked the physical query do you mean without any other logic being applied in the analysis?
0 -
what is the exact column formula of your date field? Is the field defined as a DATE datatype in the repository?
0 -
Its ODBC 3.5 as call interface and driver as sql server.
You were right I am getting to_date without applying any logic.
0 -
Can you try connecting with; -
"Data Direct ODBC, set of drives included with OBIEE, which enable connection to SQL Server, MySQL, Hive etc –The 6.0 data drivers are provided by Oracle and are installed with OBIEE."
0 -
Its simple date column whose datatype is TIMESTAMP. I tried with DATETIME too but doesn't solve the issue.
0 -
"I tried with datetime too" - what is the data type of the column in sqlserver?
When you use the wizard to import the table what data type does OBIEE assign to that column?
0 -
Datatype is TIMESTAMP when I import it.
0 -
Ok, I would not change it from that, but it does look like a problem with your underlying driver, can you try my suggestion?
0 -
I tried with Data Direct 6.0 SQL Server wire protocol. But getting same issue as:
[DataDirect][ODBC SQL Server Driver][SQL Server]'TO_DATE' is not a recognized built-in function name.. (HY000)State: HY000. Code: 16002. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)SQL Issued: SELECT DISTINCT "Permit Fact"."Received Date" saw_0, "Site Dim"."Site Name" saw_1 FROM "Wellview_Siteview" WHERE "Permit Fact"."Received Date" >= timestamp '2008-03-08 00:00:00' ORDER BY saw_0, saw_1.In filter I am giving asProblem is obiee is trying to convert in this formatT835376.DTTMRECIEVED >= TO_DATE('2008-03-08 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') )
0 -
Could this be your issue =>
https://community.oracle.com/thread/1038714
Note also that 11g is not supported with later versions of sqlserver, you are really past the point of needing to upgrade!!
0