Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 internals of triggers

Author  Topic 

heze
Posting Yak Master

192 Posts

Posted - 2008-12-27 : 21:27:57
also, can someone please give me a pointer to where to learn about the internals of triggers?
That is, how triggers are programmed. I am specifically interested in the point in which sql server catches the request for, say, an insert, and before it is executed, it transfers control to the trigger mechanism that creates the inserted temp table.
And even more specifically, I would like to know what is the signal that sql server listens to when this insert is requested? where does this signal comes from, how is it generated, who generates it, how it is received, which component receives it, etc...

thank you for your help,

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-29 : 00:52:53
You're going to need to contact Microsoft directly about this as this will probably only be answered by the actual SQL Server developers. I've never seen this talked about in any of the advanced SQL books.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-29 : 00:54:37
some high level documentation can be found here

http://www.transactsqldirectory.com/transact_sql_triggers.htm
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-29 : 01:02:03
Although the article and its associated links provides good information, it doesn't seem to address the OP's questions.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

heze
Posting Yak Master

192 Posts

Posted - 2008-12-30 : 21:06:25
Thank you for your comments,

Well, I am reading this article, and it describes the architecture of SQL Server 7.0, does anyone knows if the architecture described here (in the first paragraphs) is still the same or at least similar to the 2005 and 2008 versions?

http://msdn.microsoft.com/en-us/library/aa226174(SQL.70).aspx

thank you
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-31 : 22:12:06
Like Tara said, You have to contact microsoft SQL Genius who wrote/implemented about Triggers? Only he has real answer. Like Paul,who knows internals about Corruptions because he wrote for it.
Go to Top of Page
   

- Advertisement -