Forum Discussion
Power BI Desktop Date conversion error in French environment
Hi keithpoplar,
>> the date format in the query that was sent to SQL server
What's the mean of "sent to", it refers to the data was get from SQL Server, right?
Best Regards,
Angelia
Hi v-huizhn-msft let me explain more:
My report connects to SQL server and gets data from a SQL function call "getData".
And I have filters in my report that is pointing to a date time field of the SQL function. When I click the filters in Power BI desktop
When I click the filters in Power BI desktop, I can see a bunch of scripts sent to SQL server using SQL profiler. I guess these scripts were generated by Power BI desktop.
These scripts wrapped around my "getData" function and has cast statement in the where clause to filter data by date and time.
It looks like below code. That cast statement caused the error in SQL server with French OS. As this SQL is not controlled by me, I don't know how to fix the error.
Thank you.
([t8].[DateTime] < CAST( N'2016-06-16 08:00:00' AS datetime)) AND ([t8].[DateTime] >= CAST( N'2016-06-01 08:00:00' AS datetime))
sql profiler