This is the case that in the DB I'm checking, there is an archive table which keeps the user history, and there is a trigger or store procedure that after some time delete rows from this table, in order to avoid the oversize of the same, I didn't design the DB, I'm just taking the maintenance of an application that use this DB, so I don't know the name of these stored procedures or triggers, what I want to do is locate this stored procedure or trigger, check the code and modify it to leave this "user history" longer on the table.
Someone told me to check the "sysobjects" table, where I can actually see something with the same name of the table, but this is the only information I have been able to retrieve, any advise?
Thank you.
syscommentshas multiple rows for an object that goes over the 4000 character limit, making queries using it just as valid assys.sql_modules. I still recommendsys.sql_moduleshowever sincesyscommentsis depreciated. – Kenneth Fisher Oct 18 '13 at 21:26sp_helptextis easier. The object id is the same for each row so a like query off ofsyscommentswhere the hit is on the second or even third row of a large piece of code will still return the correct object_id. The only problem may be getting multiple hits for the same object. – Kenneth Fisher Oct 19 '13 at 15:16