I need to add a field in a table. This field will need to be populated with different values.
I already know the main stored procedures which insert new records in this table and those stored procedures will need to be modified. To stay on the safe side is there a way I can get the full list of stored procedures which insert records in the table in question?
sys.dm_sql_referencing_entities gives me the list of stored procedures which are dependant on this table but I only want the stored procedures which insert records not the ones which simply query it.
Thanks.
You could try to look on the code of the stored procedure itself, but it probably won’t be a 100 percent match. Something on the lines of: