Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

Bad statistics can cause poor query performance and should be updated periodically.

Some examples of symptoms:

  • When the Timeclock form is opened it lags and Crows Nest stops responding

...

  • and the current employees records never load

  • The MR Queue on the Purchasing form times out and doesn’t load

Solution

  1. From your Crows Nest server, launch Microsoft SQL Server Management Studio (SSMS).

    Image RemovedImage Added

  2. Expand the Databases folder, right-click the CrowsNest database and choose New Query.

    Image RemovedImage Added

  3. Copy & paste the query below into the new query.

    Code Block
    languagesql
    exec sp_updatestats

  4. Click ‘Execute’.

    Image RemovedImage Added

  5. After a few moments, you should see ‘Query executed successfully' at the bottom of your
    SSMS window.

    Image RemovedImage Added

  6. Right-Mouse-Click CrowsNest database and select ‘Properties’ from the context menu.

    Image RemovedImage Added


  7. Select the ‘Options’ tool from ‘Select a page’ and ensure ‘Auto Create Statistics’ and
    'Auto Update Statistics' are both set to ‘True’.

    Image RemovedImage Added