Insert Bulk & Triggers - PerfMon to DBMS with triggers

Posted on 2007-08-08
Last Modified: 2013-12-23
I have 4 terminal servers. I am using the PerfMon on each to dump the counter data to a central SQL 2005 Database via DSN (System)

I have setup a trigger that will look at the inserted data and update a status table of counters of each terminal server. i.e. every 15 seconds when data is sent to the SQL server it will update ram, cpu etc fields on the status table.

When I manually enter the data the trigger runs perfectly. However it does not run for the data coming in from PerfMon via a DSN.

I ran the SQL Profiler and it showed me that the PerfMon is sending an "insert bulk" query.

How can I force the trigger to be run on the insert bulk query.


Question by:sachmans
    LVL 14

    Accepted Solution

    AFAIK, the only way is to specify the option FIRE_TRIGGERS. So if perfmon is using stored procedures to do the inserts, you'd need to modify them. If it's using embedded sql, you're goosed.
    LVL 23

    Expert Comment

    No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

    I will leave the following recommendation for this question in the Cleanup Zone:
    Award points to twoboats #19660973

    Any objections should be posted here in the next 4 days. After that time, the question will be closed.

    Experts Exchange Cleanup Volunteer
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Expert Comment

    That's too bad I've searched high and low for an answer to this exact question. I'm having the same problem.
    my triggers won't run on the data coming in from perfmon due to it being BULK INSERT.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    This article describes some very basic things about SQL Server filegroups.
    Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
    Via a live example, show how to shrink a transaction log file down to a reasonable size.
    Via a live example, show how to setup several different housekeeping processes for a SQL Server.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now