Procedures
Procedure | Scheme | Description |
---|---|---|
dbo | Add new custom property for object to NodeCust table. | |
dbo | Returns the object off-springs in the tree. | |
dbo | Returns the object off-springs in the tree, adheres to the permission in the object tree. | |
dbo | Assigns the license item to historical upgrades as well. | |
dbo | Converts the tree object name according to the properties forming the object name. | |
dbo | Converts the names of all tree objects, the names of which are formed from properties. | |
dbo | Converts the names of all tree objects, the names of which are formed from properties, according to the group ID. | |
dbo | ||
dbo | Converts the names of sub-tree objects, the names of which are formed from properties. | |
dbo | Sets the flag of the ticket to read/unread by the person. | |
dbo | Required values will be stored in tHdTicket after closing the ticket. | |
dbo | Converts text properties of the specific kind to date type. | |
dbo | Converts text properties of the specific kind to float type. | |
dbo | Copies the @srcSectionId service and sets it as the child of the @dstParentSectionId service. The service can be copied including (@copyChildren) Subtree. The newly created service ID is available from the @newSectionId output parameter. | |
dbo | Create scans according to parameters. | |
dbo | Plans scans according to saved setting to a specific computer (or to all computers in the active registry). | |
dbo | Creates an object based of the object template definition. | |
dbo | Add new custom field. | |
dbo | Removing custom fields. | |
dbo | Drop custom property of object from tblKind and NodeCust table. | |
dbo | Evaluation of one rule for files recognition. | |
dbo | Evaluation of the one rule for the recognition of registries. | |
dbo | Evaluates SW scan based on patterns from the software product library. | |
dbo | Sets other values for properties by numeric sequences. | |
dbo | Returns ID of external the service metric. | |
dbo | Increments numerical row definition and returns current definition. If uniqueness is breached, it automatically searches the next free number based on the row definition. | |
dbo | Full service name update (@iHdSectionId) including path in service tree. | |
dbo | Searching for the Requester’s services. Returns a table of services matching the entered parameters arranged by the path in the tree. The procedure can be customized. In order to customize the procedure, create a new procedure named spHdSectionForRequesterSearch_Custom and assign a permission to run it to the "db_executor" group. For the proper functionality of ALVAO applications, the procedure must receive the same parameters as the original procedure and return the same columns. | |
dbo | Returns a list of exceptional solvers, used to assign tickets listed in table #temp1. The procedure can be customized. In order to customize the procedure, create a new procedure named spHdTicketPassToSolver_ExceptionalSolverList_SolverList_Custom and assign a permission to run it to the "db_executor" group. For the proper functionality of ALVAO applications, the procedure must receive the same parameters as the original procedure and return the same columns. The @iUserPersonId parameter, representing the signed in user, is not used in the standard procedure. | |
dbo | Returns a list of solvers, used to assign tickets listed in table #temp1. The procedure can be customized. In order to customize the procedure, create a new procedure named spHdTicketPassToSolver_SolverList_Custom and assign a permission to run it to the "db_executor" group. For the proper functionality of ALVAO applications, the procedure must receive the same parameters as the original procedure and return the same columns. The @iUserPersonId parameter, representing the signed in user, is not used in the standard procedure. | |
dbo | Returns a list of exceptional solvers, used to assign the ticket when transitioning to the @iHdSectionId service. | |
dbo | Returns a list of solvers, used to assign the ticket when transitioning to the @iHdSectionId service. | |
dbo | Recomputes the solution of the first reaction for the ticket. | |
dbo | Recomputes the target date of the current target for the ticket. | |
dbo | Switches the ticket to Resolved. | |
dbo | Reopens the ticket by the solver. | |
dbo | Increments the service metric value by the incremental value. | |
dbo | A new record is inserted to the OperatorServiceUsage table or the LastUsed value is updated at the existing record. | |
dbo | Inserts a new record into the PersonEmailUsage table. | |
dbo | Update table tblKind and column txtName to be unique. | |
dbo | Moves the object in the object tree. | |
dbo | Bulk transfer of objects. | |
dbo | Returns the list of object properties with values converted to string. | |
dbo | Auxiliary procedure which inserts the values of the macros used for configuring notifications into the #T table. | |
dbo | Updates the tOpeningHoursCache table for specific operating hours. | |
dbo | Finds the user based on telephone number. | |
dbo | The procedure returns the list of persons according to the searched chain. The procedure can be customized. In order to customize the procedure, create a new procedure named spPersonSearch_Custom2 and assign a permission to run it to the "db_executor" group. For a proper functionality of ALVAO applications, the procedure must receive the same parameters as the original ones (see below) and return the same columns. The procedure returns the table containing the following columns: | |
dbo | Marks all communication within the ticket regarding the entered person as read. | |
dbo | Marks all ticket events with regard to the entered person as read. | |
dbo | Restores the localization cache for services. | |
dbo | Restores all the localization cache. | |
dbo | Rebuild or reorganize all indexes in the database based on their current fragmentation. | |
dbo | Recalculates information about the type and length of records in the tColumn table. | |
dbo | Updates the ProductCoverage table (the whole one or only a specific license) | |
dbo | Recalculates the parent-child object cache in the tblNodeParent table. | |
dbo | Updates the cache of the path in the tree (tblNode.txtPath). | |
dbo | Updates the cache of the persons' membership in groups. | |
dbo | Updates the cache of the software sub-profiles membership in profiles. | |
dbo | Removes the results of specific scans (ID,ID,...). | |
dbo | Removes the specific scan (ID,ID,...). | |
dbo | Permanently removes specific objects from tree (ID,ID,...). | |
dbo | Permanently deletes specific objects from the tree, including child objects (ID, ID ...). | |
dbo | Overwrites the permissions of the @dstSectionId service by permissions according to @srcSectionId service. | |
dbo | Overwrites the SLA setting of the @dstSectionId service by SLA setting according to @srcSectionId service. | |
dbo | Ticket events in the Communication, Important or Detailed log mode. | |
dbo | Converts the warning cache to blank mandatory properties in the tblNode table. | |
dbo | ||
dbo | Inserts a record in the history of the last viewed tickets of the requester. | |
dbo | Will set the user’s ID and date of action within the context of the database connection. These data are used, e.g., in the triggers which create the audit trace. | |
dbo | Returns a table with required fields for transitioning the ticket @TicketId to @NewStateId. | |
dbo | Withdraws license for the computer software. | |
dbo | Returns a list of tickets by the specified string. | |
dbo | Transfers the license on a different computer / to a different cost center. | |
dbo | Updates values in hierarchic list of values (tColumnValue) for the @ColumnId custom field. | |
dbo | Update data in the FullTextSearch column for a specific @iHdTicketId ticket or for all tickets when entering 0 to the parameter. | |
dbo | Updates the authorization cache on services. | |
dbo | Updates the value of ALVAO system settings. If the setting does not exist, it is created. | |
dbo | Updates values in cached object columns. | |
dbo | Updates property inheritance for the whole database. | |
dbo | Updates property inheritance for a specific nodes and subtrees. | |
dbo | Updates property inheritance after a new object was created. | |
dbo | Updates property inheritance after a new object property was added. | |
dbo | Updates property inheritance after a change in the property value. | |
dbo | Updates the property inheritance for a specific subtree. | |
dbo | ||
dbo | Update data in the Search column for specific objects, objects of specific type or for all objects when entering no IDs. | |
dbo | The procedure for the update of the pre-counted structure of managers and employees. | |
dbo | Changes the value of the object property in AM. If history is permitted for the object, the change will be recorded in the log. If the property is the name of the object, it will be converted according to the new value. | |
dbo | Recalculates the time period of the SLA ticket pause. | |
dbo | Updating statistics of all tables in the database. | |
dbo | Updates the record in tHdTicket based on the current TicketAlert content. | |
dbo | Recomputes the time elapsed from the previous operating hours interval to the due date of the current target, either for all tickets with an internal target (when 1 is in @forceALL), for a specific ticket (when @ticketID is entered), or for all tickets which were transferred to the next interval of the operating hours (when NULL is entered in both parameters). | |
dbo | Coverts the date of the last action related to the entered ticket number. | |
dbo | Protection against password-guessing attack. |
dbo.spAddNodeCustColumn
Add new custom property for object to NodeCust table.
Parameters
Name | Type | Description |
---|---|---|
@intKindId | int | Property kind ID (tblKind.intKindId) |
dbo.spAssetTreeNodeChilds
Returns the object off-springs in the tree.
Parameters
Name | Type | Description |
---|---|---|
@nodeId | int |
dbo.spAssetTreeNodeChilds_Rights
Returns the object off-springs in the tree, adheres to the permission in the object tree.
Parameters
Name | Type | Description |
---|---|---|
@nodeId | int | |
@personId | int |
dbo.spAssignLicenceItemToChildren
Assigns the license item to historical upgrades as well.
Parameters
Name | Type | Description |
---|---|---|
@LicHistItemId | int |
dbo.spCalcNodeName
Converts the tree object name according to the properties forming the object name.
Parameters
Name | Type | Description |
---|---|---|
@nodeId | int |
dbo.spCalcNodeNameAll
Converts the names of all tree objects, the names of which are formed from properties.
Parameters
dbo.spCalcNodeNameClass
Converts the names of all tree objects, the names of which are formed from properties, according to the group ID.
Parameters
Name | Type | Description |
---|---|---|
@TemplateNodeId | int |
dbo.spCalcNodeNameList
Parameters
Name | Type | Description |
---|---|---|
@NodeIds | nvarchar(max) |
dbo.spCalcNodeNameSubtree
Converts the names of sub-tree objects, the names of which are formed from properties.
Parameters
Name | Type | Description |
---|---|---|
@parentId | int |
dbo.spCalcUnreadTicket
Sets the flag of the ticket to read/unread by the person.
Parameters
Name | Type | Description |
---|---|---|
@PersonId | int | |
@HdTicketId | int | |
@ActId | int | |
@ApprovalItemId | int |
dbo.spCloseHdTicket
Required values will be stored in tHdTicket after closing the ticket.
Parameters
Name | Type | Description |
---|---|---|
@iHdTicketId | int | |
@iSolverPersonId | int | |
@bIgnoreRights | bit |
dbo.spConvertPropertiesToDate
Converts text properties of the specific kind to date type.
Parameters
Name | Type | Description |
---|---|---|
@intKindId | int | |
@newKindName | nvarchar(255) |
dbo.spConvertPropertiesToFloat
Converts text properties of the specific kind to float type.
Parameters
Name | Type | Description |
---|---|---|
@intKindId | int | |
@newKindName | nvarchar(255) |
dbo.spCopySection
Copies the @srcSectionId service and sets it as the child of the @dstParentSectionId service. The service can be copied including (@copyChildren) Subtree. The newly created service ID is available from the @newSectionId output parameter.
Parameters
Name | Type | Description |
---|---|---|
@srcSectionId | int | |
@dstParentSectionId | int | |
@copyChildren | bit | |
@newSectionId | int |
dbo.spCreateDetects
Create scans according to parameters.
Parameters
Name | Type | Description |
---|---|---|
@nodes | nvarchar(max) | List of computer Ids separated with commas. |
@kindId | int | Scan type ID (1=HW, 2=SW). |
@isManual | bit | Scan immediately. |
@methodId | int | Scan method ID. If it is NULL, the scan for this type is disabled. |
@isSwFull | bit | Full SW scan. |
@swInclude | nvarchar(255) | SW scan, include files. |
@swExclude | nvarchar(255) | SW scan, skip files. |
@period | int | Scan period (days). |
@personId | int | Person ID. If it is NULL, use the system account. |
dbo.spCreateDetectsBySetting
Plans scans according to saved setting to a specific computer (or to all computers in the active registry).
Parameters
Name | Type | Description |
---|---|---|
@nodes | nvarchar(max) | List of computer Ids separated with commas. If the parameter is NULL, detections are planned according to the saved setting to all computers in the active registry. |
@isManual | bit | Scan immediately. |
@personId | int | Person ID. If it is NULL, use the system account. |
@detectProfileId | int | Scan profile ID. If set, scans for selected computer nodes are scheduled according to this profile. |
dbo.spCreateNodeFromTemplate
Creates an object based of the object template definition.
Parameters
Name | Type | Description |
---|---|---|
@templateClass | int | |
@name | nvarchar(255) | |
@target | int | |
@person | int | |
@skipGenerateFromSequence | bit | |
@computerSetId | int | |
@shouldLogPropValueChange | bit |
dbo.spCustomColumn_Add
Add new custom field.
Parameters
Name | Type | Description |
---|---|---|
@sTable | nvarchar(255) | |
@sColumn | nvarchar(255) | |
@sTitle | nvarchar(255) | |
@mDescription | nvarchar(1024) | |
@nOrder | float | |
@bUseColumnValue | bit | |
@sType | nvarchar(255) | |
@nLength | int | |
@Multiline | bit | |
@Localize | bit | |
@RoleId | int | |
@Precision | int |
dbo.spCustomColumn_Drop
Removing custom fields.
Parameters
Name | Type | Description |
---|---|---|
@sTable | nvarchar(255) | |
@sColumn | nvarchar(255) |
dbo.spDropNodeCustColumn
Drop custom property of object from tblKind and NodeCust table.
Parameters
Name | Type | Description |
---|---|---|
@intKindId | int | Property kind ID (tblKind.intKindId) |
dbo.spEvalFileRule
Evaluation of one rule for files recognition.
Parameters
Name | Type | Description |
---|---|---|
@FileImageId | int |
dbo.spEvalRegRule
Evaluation of the one rule for the recognition of registries.
Parameters
Name | Type | Description |
---|---|---|
@RegImageId | int |
dbo.spEvalSwDetection
Evaluates SW scan based on patterns from the software product library.
Parameters
Name | Type | Description |
---|---|---|
@DetectId | int |
dbo.spGeneratePropValuesFromSequence
Sets other values for properties by numeric sequences.
Parameters
Name | Type | Description |
---|---|---|
@NodeId | int | |
@person | int | |
@shouldLogPropValueChange | bit |
dbo.spGetExternalServiceMetricId
Returns ID of external the service metric.
Parameters
Name | Type | Description |
---|---|---|
@externalServiceId | int | ID of the external service. |
@metricName | nvarchar(max) | Service metric. |
@feature | nvarchar(max) | Name of the feature. |
@groupName | nvarchar(max) | Name of the group. |
dbo.spGetNextNumFromIdSeq
Increments numerical row definition and returns current definition. If uniqueness is breached, it automatically searches the next free number based on the row definition.
Parameters
Name | Type | Description |
---|---|---|
@IdSeqId | int | |
@actualNum | nvarchar(255) |
dbo.spHdSection_UpdateName
Full service name update (@iHdSectionId) including path in service tree.
Parameters
Name | Type | Description |
---|---|---|
@iHdSectionId | int |
dbo.spHdSectionForRequesterSearch
Searching for the Requester’s services. Returns a table of services matching the entered parameters arranged by the path in the tree. The procedure can be customized. In order to customize the procedure, create a new procedure named spHdSectionForRequesterSearch_Custom and assign a permission to run it to the "db_executor" group. For the proper functionality of ALVAO applications, the procedure must receive the same parameters as the original procedure and return the same columns.
Parameters
Name | Type | Description |
---|---|---|
@sample | nvarchar(300) | |
@count | int | |
@personId | int | |
@requesterId | int | |
@isForMoveToService | bit |
dbo.spHdTicketPassToSolver_ExceptionalSolverList
Returns a list of exceptional solvers, used to assign tickets listed in table #temp1. The procedure can be customized. In order to customize the procedure, create a new procedure named spHdTicketPassToSolver_ExceptionalSolverList_SolverList_Custom and assign a permission to run it to the "db_executor" group. For the proper functionality of ALVAO applications, the procedure must receive the same parameters as the original procedure and return the same columns. The @iUserPersonId parameter, representing the signed in user, is not used in the standard procedure.
Parameters
Name | Type | Description |
---|---|---|
@iUserPersonId | int |
dbo.spHdTicketPassToSolver_SolverList
Returns a list of solvers, used to assign tickets listed in table #temp1. The procedure can be customized. In order to customize the procedure, create a new procedure named spHdTicketPassToSolver_SolverList_Custom and assign a permission to run it to the "db_executor" group. For the proper functionality of ALVAO applications, the procedure must receive the same parameters as the original procedure and return the same columns. The @iUserPersonId parameter, representing the signed in user, is not used in the standard procedure.
Parameters
Name | Type | Description |
---|---|---|
@iUserPersonId | int |
dbo.spHdTicketPassToSolverInHdSection_ExceptionalSolverList
Returns a list of exceptional solvers, used to assign the ticket when transitioning to the @iHdSectionId service.
Parameters
Name | Type | Description |
---|---|---|
@iHdSectionId | int |
dbo.spHdTicketPassToSolverInHdSection_SolverList
Returns a list of solvers, used to assign the ticket when transitioning to the @iHdSectionId service.
Parameters
Name | Type | Description |
---|---|---|
@iHdSectionId | int |
dbo.spHdTicketRecalcFirstReaction
Recomputes the solution of the first reaction for the ticket.
Parameters
Name | Type | Description |
---|---|---|
@ticketId | int |
dbo.spHdTicketRecalcNextActionDeadline
Recomputes the target date of the current target for the ticket.
Parameters
Name | Type | Description |
---|---|---|
@ticketId | int |
dbo.spHdTicketResolve
Switches the ticket to Resolved.
Parameters
Name | Type | Description |
---|---|---|
@iHdTicketId | int | |
@iSolverPersonId | int | |
@bIgnoreRights | bit | |
@dResolved | datetime |