Forum Discussion

sprakash1192's avatar
sprakash1192
Icon for Helper II rankHelper II
6 years ago
Solved

Incorrect syntax near keyword OPTION

I have a view using CTE in my SQL databse.

 

I am trying to import the data from the view in Power BI using:

select * from WeekCalendar
OPTION (MAXRECURSION 0) ;

 

The above SQL runs perfectly fine in the database but, Power BI is giving me error - Incorrect Syntax near the keyword OPTION.

 

Please adivse.

  • I already had.

     

    But I changed some of my SQL scripts and not use CTE, I am fine with the issue now.

5 Replies