Amr Badawy
Amr Badawy

Reputation: 7673

Which Stored Procedure access my Table?

I have the following strange problem that i can't solve till now:
We have a portal database that contain user table which contain a boolean column called IsAvtive tat determined if the user is active ( can make login to our portal ) or not ..
this column value is changed to be False by unknown code .. I search a lot about the source code that change it but i can't find ( we have a lot of old DLL and code that i can't see all) ,we always use stored procedure to update this table ..
I think If is there any way to know the stored procedure that access this table during last 7 days and then I cam trace them ?

Upvotes: 0

Views: 185

Answers (2)

gbn
gbn

Reputation: 432271

Some options

  • Add a trigger to the table that logs into another table
  • Run SQL Profiler
  • Remove write permissions on this column, see who calls

Upvotes: 1

ykatchou
ykatchou

Reputation: 3727

You probably could check into Logs. Take a look into C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA and the database name _log.ldf

Upvotes: 0

Related Questions