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
View original