How to get the SQL Server object name from Query Store?

Is there any way to damage Intellect Devourer(s) when already within a creature's skull?

Single word request: Harming the benefactor

In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?

Does "variables should live in the smallest scope as possible" include the case "variables should not exist if possible"?

Is it true that real estate prices mainly go up?

Why is Beresheet doing a only a one-way trip?

How could our ancestors have domesticated a solitary predator?

Replacing Windows 7 security updates with anti-virus?

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

Should I tell my boss the work he did was worthless

Reverse string, can I make it faster?

Solving "Resistance between two nodes on a grid" problem in Mathematica

infinitive telling the purpose

Is there a window switcher for GNOME that shows the actual window?

Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?

Are the terms "stab" and "staccato" synonyms?

Is Gradient Descent central to every optimizer?

What to do when during a meeting client people start to fight (even physically) with each others?

Is there an elementary proof that there are infinitely many primes that are *not* completely split in an abelian extension?

Why don't MCU characters ever seem to have language issues?

Good allowance savings plan?

Make a transparent 448*448 image

Why the color red for the Republican Party

Should QA ask requirements to developers?



How to get the SQL Server object name from Query Store?














0















In Query Store how can we get the name of the SQL Server object, such as the Stored Procedure name, that created the query plan?



We could use a query like below, substituting in the query_id that we copy from the Query Store reports, but that's one-at-a-time and awkward. Isn't there an easier way?



SELECT o.name
, o.object_id
, o.type_desc
, qs.*
FROM sys.query_store_query qs
JOIN sys.objects o
ON qs.object_id = o.object_id
WHERE qs.query_id = 555523








share



























    0















    In Query Store how can we get the name of the SQL Server object, such as the Stored Procedure name, that created the query plan?



    We could use a query like below, substituting in the query_id that we copy from the Query Store reports, but that's one-at-a-time and awkward. Isn't there an easier way?



    SELECT o.name
    , o.object_id
    , o.type_desc
    , qs.*
    FROM sys.query_store_query qs
    JOIN sys.objects o
    ON qs.object_id = o.object_id
    WHERE qs.query_id = 555523








    share

























      0












      0








      0








      In Query Store how can we get the name of the SQL Server object, such as the Stored Procedure name, that created the query plan?



      We could use a query like below, substituting in the query_id that we copy from the Query Store reports, but that's one-at-a-time and awkward. Isn't there an easier way?



      SELECT o.name
      , o.object_id
      , o.type_desc
      , qs.*
      FROM sys.query_store_query qs
      JOIN sys.objects o
      ON qs.object_id = o.object_id
      WHERE qs.query_id = 555523








      share














      In Query Store how can we get the name of the SQL Server object, such as the Stored Procedure name, that created the query plan?



      We could use a query like below, substituting in the query_id that we copy from the Query Store reports, but that's one-at-a-time and awkward. Isn't there an easier way?



      SELECT o.name
      , o.object_id
      , o.type_desc
      , qs.*
      FROM sys.query_store_query qs
      JOIN sys.objects o
      ON qs.object_id = o.object_id
      WHERE qs.query_id = 555523






      sql-server query-store





      share












      share










      share



      share










      asked 2 mins ago









      Conrad S.Conrad S.

      484




      484






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f231963%2fhow-to-get-the-sql-server-object-name-from-query-store%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f231963%2fhow-to-get-the-sql-server-object-name-from-query-store%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Parapolítica Índice Antecedentes El escándalo Proceso judicial Consecuencias Véase...

          How to remove border from elements in the last row?Targeting flex items on the last rowHow to vertically wrap...

          Tecnologías entrañables Índice Antecedentes Desarrollo Tecnologías Entrañables en la...