Help regarding Performance Statistics Script

  • Hi all,

    I am a newbie in SQL Server. Today i came across the PerformanceStatisticsScript. I found it in SQLNexus.codeplex.com and i am sure many on this forum would be using this script. In this script the author uses the condition as

    IF '%runmode%' = 'REALTIME'

    I am not able to relate this condition with the stuff i know about SQL Server.

    Morever the author is using many tables like tbl_BLOCKING_CHAINS,tbl_HEADBLOCKERSUMMARY etc.

    Create table scripts is present but it is present in a If condition , which according to me would never execute. Hence .....hhhmmmm....should this table be present prior running this scripts or what is the concept

  • That sounds like a line from a batch file rather than a SQL script.

    John

  • Yeah, not sure. That syntax looks a little odd. It's not a sqlcommand parameter. It' not a normal parameter. Best thing would be to go back and reread whatever documentation is provided to understand what this thing is doing.

    What is it that you wanted it to do?

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

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

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