What could be the reason a query is taking way more time through the GUI than direct on SMSS?

If I copy this query into SMSS and execute it, it's done instantly. While via the GUI it takes quite some milliseconds.
What could be the reason a query is taking way more time through the GUI than direct on SMSS?
If I copy this query into SMSS and execute it, it's done instantly. While via the GUI it takes quite some milliseconds.
Best answer by Vincent Doppenberg
Hello Freddy,
Yes, I expected it to be something like this. The OPTION clause should be on the outer query, not the inner query.
For now it’s probably best to remove the force_recompile option again, even though it is the correct fix for the performance issue, until we have resolved the syntax error in the query. I will look into this issue during the current sprint and it will be resolved in the next version of Indicium Universal.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.