sql - how to get the list of users accessing to particular tables or views -
i want list of users accessing sql server(database tables/views),my users access views excel sheet.
how track user connecting sql database , need track on table/view using!
i tried using sysprocesses in these getting user list accessing particular database not getting user accessing particular table
as long query running, can execute system stored procedure:
sp_who3
which can find under [db_name] - [stored procedures] - [dbo.sp_who3]. unfortunately doesn't log anywhere.
easiest way modify - add storing logs own table. can insert
selects - login, sqlstatement, starttime.
frankly speaking logging table grow huge soon. consider limiting logging selected users!
Comments
Post a Comment