I have a database in MS SQL Server 2008 that has 3 tables. I want to create a trigger for INSERT, UPDATE and DELETE for each row for these tables. For the trigger function I want to call a python function. The python script needs to write some of the columns from the row for which the trigger occurred and write it to a socket. I checked on the net but could not find how the python function can be called as a trigger function.
Edit: Or is there a way the trigger procedure in SQL can do this itself? Can it act as a TCP server and write the trigger data to the socket?