Postman collection
General Read

pixiInfoSettingsHist

Returns the change history of Pixi settings within a date range, newest changes first, optionally limited to a number of rows.

Reads the setting change log from the table SettingsHist and returns one row per logged change.

  • The effective change date of an entry is UpdateDate, or CreateDate if UpdateDate is empty. The same logic applies to the employee: UpdateEmp, otherwise CreateEmp.
  • Only entries whose effective change date lies between FromDate and ToDate (both inclusive) are returned.
  • If FromDate is omitted, NULL or has a year before 1990, it is set to 1970-01-01, so there is no lower bound.
  • If ToDate is omitted, NULL or has a year before 1990, the current date and time is used.
  • The result is sorted by the effective change date in descending order (newest first).
  • If Rows is greater than 0, only that many rows are returned (via SET ROWCOUNT). With 0 (default) all matching rows are returned.

Notes

  • The table is read WITH(NOLOCK), so uncommitted changes may appear.
  • ToDate is compared including the time part. A value such as 2024-03-31 (midnight) excludes changes made later on that day; pass 2024-03-31T23:59:59 or the following day to include the whole day.
  • Filtering on an ISNULL expression prevents index use on the date columns; on large history tables, narrow date ranges or a Rows limit are advisable.
  • The exact data types of the columns of SettingsHist are not visible in the code.

Tables used

SettingsHist · Read
SQL object:
dbo.pipiInfoSettingsHist
Updated at 2026-10-30