Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Trigger not firing in SQL Server 2000

Trigger not firing in SQL Server 2000

Scheduled Pinned Locked Moved Database
databasecsharpsql-serversysadmintools
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    debsoft75
    wrote on last edited by
    #1

    Hi All, I have created a Insert Trigger and a Update Trigger on a table in a database. Now an external application (developed in .NET and I have no source code access) makes an insert successfully in the table. But the trigger doesn't fire. When I directly execute a insert script on the table from SQL Query Analyzer, then the trigger fires but when insert is done by the external application (.NET app) the trigger doesn't fire. Can somebody help me out with this...I'm completely clueless as to why it is behaving this way. Thanks Debsoft

    A 1 Reply Last reply
    0
    • D debsoft75

      Hi All, I have created a Insert Trigger and a Update Trigger on a table in a database. Now an external application (developed in .NET and I have no source code access) makes an insert successfully in the table. But the trigger doesn't fire. When I directly execute a insert script on the table from SQL Query Analyzer, then the trigger fires but when insert is done by the external application (.NET app) the trigger doesn't fire. Can somebody help me out with this...I'm completely clueless as to why it is behaving this way. Thanks Debsoft

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      This is weird.. If any insert operation is made trigger gets fired automatically. Open SQL Server profiler -> and check what exactly is running from inside that application. It must be invoking some insert statement on the database. :)

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups