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

    Finding all Sources that Log a Specific Quantity

    Issue
    How to find out what sources/nodes in the power monitoring system (ION Enterprise, SPM, PME) are logging data for a specific quantity.

    Product Line
    ION Enterprise 6.0, Struxureware Power Monitoring 7.0, Power Monitoring Expert 7.2

    Environment
    SQL Server Management Studio (SSMS)
    Database Manager

    Cause
    It may not be possible to check all the nodes in the system one by one to find out if a Data Recorder is logging one specific quantity if there are too many devices in the system.  As such it is desirable to write a SQL statement to return the result set.

    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.

    The solution is to write a query to return the desired result directly from the database.  Since the database schema has changed in newer versions of the software, below is the solution for each version.

    Based on the software version, use SSMS to run one of the queries given below.  Replace the by the actual quantityid of the measurement.

    Assumption: The quantityid of the measurement in question is known, or the user is capable of finding the quantityid by searching the 'quantity' table in ION_Data database.


    1.  ION Enterprise 6.0 and earlier versions

    use ion_data
    select * from source where id in
    (select distinct dls.sourceid
    from datalog dl inner join
    datalogstamp dls on dl.datalogstampid = dls.id
    where dl.quantityid =
    )

    2.  Struxureware Power Monitoring and later versions

    use ion_data
    select * from source where id in
    (select distinct dl2.sourceID
    from datalog2 dl2 inner join
    quantity q on dl2.quantityid = q.id
    where q.id = 
    )

     

    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