Determine what user created objects in SQL Server

前端 未结 4 1435
伪装坚强ぢ
伪装坚强ぢ 2020-12-01 11:49

I\'m trying to go through our development DB right now and clean up some of the old test procs/tables. Is it possible to determine what user created objects in a SQL Server

4条回答
  •  隐瞒了意图╮
    2020-12-01 12:28

    If the object was recently created, you can check the Schema Changes History report, within the SQL Server Management Studio, which "provides a history of all committed DDL statement executions within the Database recorded by the default trace":

    enter image description here

    You then can search for the create statements of the objects. Among all the information displayed, there is the login name of whom executed the DDL statement.

提交回复
热议问题