Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Help regarding Performance Statistics Script Expand / Collapse
Posted Monday, January 7, 2013 4:15 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, March 22, 2016 5:42 AM
Points: 298, Visits: 797
Hi all,
I am a newbie in SQL Server. Today i came across the PerformanceStatisticsScript. I found it in 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
Post #1403528
Posted Monday, January 7, 2013 4:25 AM



Group: General Forum Members
Last Login: 2 days ago @ 8:49 AM
Points: 7,030, Visits: 14,716
That sounds like a line from a batch file rather than a SQL script.

Post #1403532
Posted Monday, January 7, 2013 4:52 AM



Group: General Forum Members
Last Login: Today @ 3:45 AM
Points: 17,172, Visits: 32,133
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
The Scary DBA
Author of:
SQL Server Query Performance Tuning
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1403545
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse