Determine what user created objects in SQL Server

前端 未结 4 1441
伪装坚强ぢ
伪装坚强ぢ 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:33

    If each user has its own SQL Server login you could try this

    select 
        so.name, su.name, so.crdate 
    from 
        sysobjects so 
    join 
        sysusers su on so.uid = su.uid  
    order by 
        so.crdate
    

提交回复
热议问题