|
Class Reference
%SYS.PTools.SQLBenchMarkQueries
|
|
![]() |
|||
Private Storage |
This Class gets populated from the
The class contains the SQLText, the Job Number, the Time Stamp from when the query was run, and the Parameters that were used.
The Method
|
|
Properties | ||||
---|---|---|---|---|
JobNumber | NameSpace | PValues | QueryText | RunTime |
|
|
This is a simple example of what can be done with the data stored in this table.
This method take 2 parameters:
- NameSpace - the NameSpace where you want to run the Benchmark
- Display - 1 or 0 to control output to the screen
This method will loop over the queries that are stored in this classes and execute them as Dynamic SQL statements SQLStats is turned off for this run and the state is returned when the code finishes The code will display and save data for fetching the first row and for fetching all the rows The data saved will be: Global Refs, Lines of Code, Rows Returned, and Total Time. All the results are stored in the
%SYS.SQLBenchMarkResults class.
|
SQL Query as view "Query_With_Parameters":
SELECT P.Id, P.NameSpace, P.QueryText, P.RunTime, P.JobNumber, PV.PValues
FROM %SYS_PTools.SQLBenchMarkQueries P
LEFT OUTER JOIN %SYS_PTools.SQLBenchMarkQueries_PValues PV ON P.ID = PV.SQLBenchMarkQueries