How to diagnose performance issues with an encrypted procedure without execute and alter permissions?Big O, how do you calculate/approximate it?How costly is .NET reflection?When is assembly faster than C?Efficiency of Java “Double Brace Initialization”?Improve INSERT-per-second performance of SQLite?Speed comparison with Project Euler: C vs Python vs Erlang vs HaskellWhy is my program slow when looping over exactly 8192 elements?Swift Beta performance: sorting arraysReplacing a 32-bit loop counter with 64-bit introduces crazy performance deviationsWhy is [] faster than list()?

Am I being scammed by a sugar daddy?

Can artificial satellite positions affect tides?

Idiom for 'person who gets violent when drunk"

Purpose of cylindrical attachments on Power Transmission towers

The best in flight meal option for those suffering from reflux

In The Incredibles 2, why does Screenslaver's name use a pun on something that doesn't exist in the 1950s pastiche?

Jam with honey & without pectin has a saucy consistency always

Why are backslashes included in this shell script?

Print "N NE E SE S SW W NW"

Am I allowed to determine tenets of my contract as a warlock?

Is this equation correct? And if so, is this famous?

How effective would a full set of plate armor be against wild animals found in temperate regions (bears, snakes, wolves)?

Why did Robert pick unworthy men for the White Cloaks?

Is pointing finger in meeting consider bad?

What is the theme of analysis?

Is it a good security practice to force employees hide their employer to avoid being targeted?

Why is it bad to use your whole foot in rock climbing

Is fission/fusion to iron the most efficient way to convert mass to energy?

Commencez à vous connecter -- I don't understand the phrasing of this

Is all-caps blackletter no longer taboo?

Can an open source licence be revoked if it violates employer's IP?

What does the "titan" monster tag mean?

Why not make one big cpu core?

What are the advantages of using TLRs to rangefinders?



How to diagnose performance issues with an encrypted procedure without execute and alter permissions?


Big O, how do you calculate/approximate it?How costly is .NET reflection?When is assembly faster than C?Efficiency of Java “Double Brace Initialization”?Improve INSERT-per-second performance of SQLite?Speed comparison with Project Euler: C vs Python vs Erlang vs HaskellWhy is my program slow when looping over exactly 8192 elements?Swift Beta performance: sorting arraysReplacing a 32-bit loop counter with 64-bit introduces crazy performance deviationsWhy is [] faster than list()?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















That's the question I got in the interview. And I couldn't say anything more than parameter sniffing. But this is not a method of finding a solution, but one of the possible problems. And I wonder how you can really diagnose such a situation?










share|improve this question

















  • 1





    If you can't run the stored procedure, then your options are indeed limited. If I was asking this question in an interview, then I would probably expect the candidate to mention cached execution plans, or viewing statistics (e.g. dba.stackexchange.com/questions/16493/…). Another option would be setting up a trace (SQL Profiler), although having the rights to do this and NOT execute stored procedures seems a bit artificial?

    – Richard Hansell
    Mar 25 at 14:14

















0















That's the question I got in the interview. And I couldn't say anything more than parameter sniffing. But this is not a method of finding a solution, but one of the possible problems. And I wonder how you can really diagnose such a situation?










share|improve this question

















  • 1





    If you can't run the stored procedure, then your options are indeed limited. If I was asking this question in an interview, then I would probably expect the candidate to mention cached execution plans, or viewing statistics (e.g. dba.stackexchange.com/questions/16493/…). Another option would be setting up a trace (SQL Profiler), although having the rights to do this and NOT execute stored procedures seems a bit artificial?

    – Richard Hansell
    Mar 25 at 14:14













0












0








0








That's the question I got in the interview. And I couldn't say anything more than parameter sniffing. But this is not a method of finding a solution, but one of the possible problems. And I wonder how you can really diagnose such a situation?










share|improve this question














That's the question I got in the interview. And I couldn't say anything more than parameter sniffing. But this is not a method of finding a solution, but one of the possible problems. And I wonder how you can really diagnose such a situation?







sql performance tsql stored-procedures sql-server-2012






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 25 at 0:58









M. RictusgrinM. Rictusgrin

32




32







  • 1





    If you can't run the stored procedure, then your options are indeed limited. If I was asking this question in an interview, then I would probably expect the candidate to mention cached execution plans, or viewing statistics (e.g. dba.stackexchange.com/questions/16493/…). Another option would be setting up a trace (SQL Profiler), although having the rights to do this and NOT execute stored procedures seems a bit artificial?

    – Richard Hansell
    Mar 25 at 14:14












  • 1





    If you can't run the stored procedure, then your options are indeed limited. If I was asking this question in an interview, then I would probably expect the candidate to mention cached execution plans, or viewing statistics (e.g. dba.stackexchange.com/questions/16493/…). Another option would be setting up a trace (SQL Profiler), although having the rights to do this and NOT execute stored procedures seems a bit artificial?

    – Richard Hansell
    Mar 25 at 14:14







1




1





If you can't run the stored procedure, then your options are indeed limited. If I was asking this question in an interview, then I would probably expect the candidate to mention cached execution plans, or viewing statistics (e.g. dba.stackexchange.com/questions/16493/…). Another option would be setting up a trace (SQL Profiler), although having the rights to do this and NOT execute stored procedures seems a bit artificial?

– Richard Hansell
Mar 25 at 14:14





If you can't run the stored procedure, then your options are indeed limited. If I was asking this question in an interview, then I would probably expect the candidate to mention cached execution plans, or viewing statistics (e.g. dba.stackexchange.com/questions/16493/…). Another option would be setting up a trace (SQL Profiler), although having the rights to do this and NOT execute stored procedures seems a bit artificial?

– Richard Hansell
Mar 25 at 14:14












1 Answer
1






active

oldest

votes


















0














That is indeed one of those questions to see how you think and what your depth of knowledge is and how you react. Execution plans, and all these options mentioned by Richard really depend on how the environment is set up (ie, permissions). It would be really weird to have permissions for these and you couldn't exec a stored proc. This is one of those questions someone really wants to grind you. Our DBA is like this, but he's realistic. He'll ask someone to hand write a query that's a classic pick out the max or something similar. He'll use real table names, and he'll wait for the query, then type it in to see if it works. If issues arise, he'll hand it over and ask them to fix it. I feel this is a better approach than asking about what I like to call 'edge cases' that you aren't going to see often.



-Nick






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2fstackoverflow.com%2fquestions%2f55330066%2fhow-to-diagnose-performance-issues-with-an-encrypted-procedure-without-execute-a%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    That is indeed one of those questions to see how you think and what your depth of knowledge is and how you react. Execution plans, and all these options mentioned by Richard really depend on how the environment is set up (ie, permissions). It would be really weird to have permissions for these and you couldn't exec a stored proc. This is one of those questions someone really wants to grind you. Our DBA is like this, but he's realistic. He'll ask someone to hand write a query that's a classic pick out the max or something similar. He'll use real table names, and he'll wait for the query, then type it in to see if it works. If issues arise, he'll hand it over and ask them to fix it. I feel this is a better approach than asking about what I like to call 'edge cases' that you aren't going to see often.



    -Nick






    share|improve this answer



























      0














      That is indeed one of those questions to see how you think and what your depth of knowledge is and how you react. Execution plans, and all these options mentioned by Richard really depend on how the environment is set up (ie, permissions). It would be really weird to have permissions for these and you couldn't exec a stored proc. This is one of those questions someone really wants to grind you. Our DBA is like this, but he's realistic. He'll ask someone to hand write a query that's a classic pick out the max or something similar. He'll use real table names, and he'll wait for the query, then type it in to see if it works. If issues arise, he'll hand it over and ask them to fix it. I feel this is a better approach than asking about what I like to call 'edge cases' that you aren't going to see often.



      -Nick






      share|improve this answer

























        0












        0








        0







        That is indeed one of those questions to see how you think and what your depth of knowledge is and how you react. Execution plans, and all these options mentioned by Richard really depend on how the environment is set up (ie, permissions). It would be really weird to have permissions for these and you couldn't exec a stored proc. This is one of those questions someone really wants to grind you. Our DBA is like this, but he's realistic. He'll ask someone to hand write a query that's a classic pick out the max or something similar. He'll use real table names, and he'll wait for the query, then type it in to see if it works. If issues arise, he'll hand it over and ask them to fix it. I feel this is a better approach than asking about what I like to call 'edge cases' that you aren't going to see often.



        -Nick






        share|improve this answer













        That is indeed one of those questions to see how you think and what your depth of knowledge is and how you react. Execution plans, and all these options mentioned by Richard really depend on how the environment is set up (ie, permissions). It would be really weird to have permissions for these and you couldn't exec a stored proc. This is one of those questions someone really wants to grind you. Our DBA is like this, but he's realistic. He'll ask someone to hand write a query that's a classic pick out the max or something similar. He'll use real table names, and he'll wait for the query, then type it in to see if it works. If issues arise, he'll hand it over and ask them to fix it. I feel this is a better approach than asking about what I like to call 'edge cases' that you aren't going to see often.



        -Nick







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 4 at 17:27









        Nick GNick G

        113




        113



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • 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%2fstackoverflow.com%2fquestions%2f55330066%2fhow-to-diagnose-performance-issues-with-an-encrypted-procedure-without-execute-a%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

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해