Empty Result Set with show "Actual Execution Plan" = on but with off I get rows

  • Hello everybody,

    I have a CLR table vlaued function, which recursively determines the "linked" databases using the sys.synonyms and sys.sql_expression_dependencies.

    If I select the function in SSMS with "Show Actual Execution Plan" switched on, I get an empty result set. If I set it to OFF I get rows. Both same statement!

    Does anyone know a reason that would explain this behavior? Is there a special setting needed in the CLR to avoid this behavior or is it maybe a bug in SQL-Server?

    SQL-Server 2019 (RTM-CU8-GDR) (KB4583459) - 15.0.4083.2 (X64)

    thanks in advance, and

    greetings from Tyrol

    • This topic was modified 3 years, 3 months ago by  Gerhard P.. Reason: add Server Version; alter title

    Gerhard P.Advanced BI DeveloperAustria

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • Could theoretically also be caused by a bug in SSMS. Are you using the latest version, i.e. 18.9.2?

  • Back from vacation - therefore answered so late.

    Yes, the latest SSMS.

    I thought(hope) maybe there is a constallation in .Net c#, which provokes something like that

    Gerhard P.Advanced BI DeveloperAustria

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply