Discover our Clipsal Smart Home packages as seen on the Block

in location

OR

I'm looking for

  • Wholesalers
    • Uncheck All Check All
  • EXPERTISE
    • Expand
    • Expand
    • Expand
    • Uncheck All Check All
  • Switchboard Manufacturers
    • Uncheck All Check All
OR

The best way to see what Clipsal electric products can do for your home is seeing them in action at a Clipsal Display Centre.

Product stock may vary according to location. If you're after a specific product range, please check with your chosen location before visiting.

10 Results
    Load More Load Complete
    Change Location

    How to identify and update outdated Statistics in SQL Server

    Issue
    A user may be experiencing performance issues when running SQL queries.

    Product Line
    StruxureWare Power Monitoring 7.0.x
    Power Monitoring Expert 7.2.x, 8.x
    ION Enterprise 6.0.x
    ION EEM

    Environment
    SQL Server 2005, SQL Server 2008 R2, SQL Server 2012, SQL Server 2014, SQL Server 2016

    Cause
    Outdated statistics can make the SQL server choose a non-optimal execution plan causing undesirable slow response times for certain queries.

    Resolution
    *Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.*

    To identify tables within the database which have outdated statistics, the following query can be used.

    SELECT OBJECT_NAME(id) AS Table ,st.[name] AS Tnaam, si.name,
                  STATS_DATE(id, indid) AS DateLastUpdate,rowmodctr rowsModifiedSinceLastUpdate
    FROM sys.sysindexes AS si
    INNER JOIN sys.[tables] AS st ON si.[id] = st.[object_id]
    INNER JOIN sys.schemas AS ss ON st.[schema_id] = [ss].[schema_id]
    WHERE STATS_DATE(id, indid)<=DATEADD(DAY,-1,GETDATE())
    AND rowmodctr>10
    ORDER BY[rowmodctr] DESC

    Once you have identified tables with outdated statistics, the UPDATE STATISTICS  statement can be used to
    bring the statistics back up to date.

    Didn’t find what you were looking for?

    Try Searching Again View Our Categories

    Need further assistance?

    Our Customer Care department provides total customer service solutions for our residential, industrial and commercial applications.

    Get Assistance