Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
i actually used the App_Name() fucntion.. very nice
cwfontan
Yak Posting Veteran
87 Posts
Posted - 2009-11-13 : 15:41:15
-- Audit triggerALTER TRIGGER [dbo].[LogSQL]ON [dbo].[M8_Customers]AFTER INSERT, UPDATE, DELETEASINSERT INTO dbo.PB_Logs (language_event, parameters, event_info,FormName)EXEC('DBCC INPUTBUFFER(@@SPID);'); --I WANT TO ADD THIS TO THE FORMNAME COLUMN???Values(APP_NAME())