Share via

Azure SQL DB Capture Parameter Values Per Query

Peter Shore 0 Reputation points
2023-05-16T21:03:54.18+00:00

Is there a way to capture the value of a parameter for each individual execution of a query? We suspect a parameter, though not necessarily sniffing, issue.

Azure SQL Database

1 answer

Sort by: Most helpful
  1. SSingh-MSFT 16,461 Reputation points Moderator
    2023-05-17T09:13:11.2466667+00:00

    Hi Peter Shore •,

    Welcome to Microsoft Q&A forum and thanks for using Azure Services.

    As I understand, you want to capture the value of a parameter for each individual execution of a query.

    Could you please refer to the below link if matches to your requirement:

    https://www.sqlshack.com/working-with-parameters-in-the-sp_executesql-stored-procedure/

    If not, could you please provide more information about the usecase here so that we can assist you better.

    Thank you.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.