%SYS.PTools.SQLUtilResults
deprecated persistent class %SYS.PTools.SQLUtilResults extends %Library.Persistent
SQL Table Name: %SYS_PTools.SQLUtilResults
-- DEPRECATED --- DEPRECATED --- DEPRECATED --- DEPRECATED --- DEPRECATED -- Starting with ver '2.0' of the PTools application, this class is considered to be DEPRECATED and is replaced by the %SYS.PTools.UtilSQLAnalysisDB class. -- DEPRECATED --- DEPRECATED --- DEPRECATED --- DEPRECATED --- DEPRECATED -- ------------------------------------------------------------------------------
Class: %SYS.PTools.SQLUtilResults Replaced By: %SYS.PTools.UtilSQLAnalysisDB Purpose: This class is used by the following methods to store the SQL Analysis details collected against the SQL Statements stored in the %SYS.PTools.SQLUtilities class: - IndexUsage() - TableScans() - TempIndices() - JoinIndices() Data Storage: ^%sqlcq("SAMPLES","PTools","Utils","Results","{C|D|I|S}") Error Storage: ^%sqlcq($NAMESPACE,"PTools","Error"[...])=$LIST Info
Property Inventory
- BlockCount
- Counter
- DataValues
- ExtentSize
- IndexFields
- IndexName
- JoinIndexFlag
- MapType
- ModuleName
- OptionName
- SQLPointer
- SchemaName
- TableName
- UsageCount
Method Inventory
Properties
Methods
Method:       exportSQLUtilStmtRslts [SQL: PT_exportSQLUtilStmtRslts]
Replaced By:  exportUtilSQLAnalysisDB [SQL: PT_exportUtilSQLAnalysisDB]  (%SYS.PTools.UtilSQLAnalysis)
Purpose:      Create a file containing all the data from the 
              %SYS.PTools.SQLUtilResults class & return the
              output location...
Status:       New Functionality
Invocation:   This method can be invoked in the following ways:
                 ObjectScript: ##class(%SYS.PTools.SQLUtilResults).exportSQLUtilStmtRslts(...)
                   SQL: CALL %SYS_PTools.PT_exportSQLUtilStmtRslts(...)
                        SELECT %SYS_PTools.PT_exportSQLUtilStmtRslts(...)
      NOTE:      This 'SqlProc' method can be invoked with either the 
                 CALL-interface or the SELECT-interface.  Both interfaces
                 execute the method: the CALL-interface does not return
                 any resulting value, while the SELECT-interface does.
Examples:     The following examples shows the use of this method:
   #1         Display this export file to the screen via a InterSystems IRIS Terminal:
              set tSC=##class(%SYS.PTools.SQLUtilResults).exportSQLUtilStmtRslts($IO)
   #2         Display this export file via the SQL Query Page of the
              Management Portal:
              CALL %SYS_PTools.PT_exportSQLUtilStmtRslts('$IO','H')
              Where: '$IO' = Output to the current device
                             NOTE: '$IO' can be omitted, as it is the default
                                   'file' when invoked via the CALL interface
                      'H'  = Output the format in HTML format
                             NOTE: 'H' can be omitted, as it is the default
                                   'format' when invoked via the CALL interface
NOTE:         This method has been added to this DEPRECATED class to correspond
              with the newly created 'export' method defined for the new &
              improved interface in the '%SYS.PTools.UtilSQLAnalysis' class
 Parameters:
  file      - The path and file in which to create and store the data from the
              %SYS.PTools.SQLUtilResults class:  (e.g. C:\exportFile.txt) 
              NOTE:    $IO = Outputs the data to the screen
                     '$IO' = Output the data to the current device when invoked from the CALL/SELECT-interface
                    '$DEF' = Ouput the data to the DEFAULT file when invoked from the CALL/SELECT-interface
                 [DEFAULT: {Current-Directory}\PT_exportSQLUtilStmtRslts_YYYYMMDD_HHMMSS.{ext}]
                     WHERE {Current-Directory} = The directory of the Namespace in which
                                                 this method is invoked (e.g. $ZU(12,""))
              NOTE 2: If Passed By Reference, then 'file' will be returned as the
                      canonical name of the Export/Reporting file
  format    - The output format of the Export/Reporting file
              This parameter has the following structure of constituent elements:
                 format=
Indexes
Triggers
Inherited Members
Inherited Methods
- %%CLASSNAMELogicalToStorage()
- %%CLASSNAMEStorageToLogical()
- %AddToSaveSet()
- %AddToSyncSet()
- %BMEBuilt()
- %BuildIndicesAsync()
- %BuildIndicesAsyncResponse()
- %CheckConstraints()
- %CheckConstraintsForExtent()
- %ClassIsLatestVersion()
- %ClassName()
- %ComposeOid()
- %ConstructClone()
- %Delete()
- %DeleteExtent()
- %DeleteId()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Exists()
- %ExistsId()
- %Extends()
- %GUID()
- %GUIDSet()
- %GetLock()
- %GetParameter()
- %GetSwizzleObject()
- %Id()
- %InitExtentData()
- %InsertBatch()
- %IsA()
- %IsModified()
- %IsNull()
- %KillExtent()
- %KillExtentData()
- %LoadFromMemory()
- %LockExtent()
- %LockId()
- %New()
- %NormalizeObject()
- %ObjectIsNull()
- %ObjectModified()
- %Oid()
- %OnBeforeAddToSync()
- %OnDeleteFinally()
- %OnDetermineClass()
- %OnOpenFinally()
- %OnSaveFinally()
- %Open()
- %OpenId()
- %OriginalNamespace()
- %PackageName()
- %PhysicalAddress()
- %PurgeIndices()
- %Reload()
- %RemoveFromSaveSet()
- %ResolveConcurrencyConflict()
- %RollBack()
- %Save()
- %SaveDirect()
- %SaveIndices()
- %SerializeObject()
- %SetModified()
- %SortBegin()
- %SortEnd()
- %SyncObjectIn()
- %SyncTransport()
- %UnlockExtent()
- %UnlockId()
- %ValidateIndices()
- %ValidateObject()
- %ValidateTable()
Storage
Storage Model: Storage (%SYS.PTools.SQLUtilResults)
| ^%sqlcq($NAMESPACE,"PTools","Utils","Results","D")(ID) | = | %%CLASSNAME SQLPointer SchemaName TableName ModuleName MapType ExtentSize BlockCount IndexName UsageCount IndexFields DataValues JoinIndexFlag |