Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 in DB level ,can i find the acounts info

Author  Topic 

billdng
Starting Member

17 Posts

Posted - 2008-12-03 : 21:29:49
dear all,
another question :
I want to complete the following function:
suppose that an application contains two accounts .the one is A,the other is B.
if A modified one record of a table. i want to write the modified info(when where and who modified it) back to the record. In the DB level not the application level,can I find the modified info ? thanks.

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-03 : 21:35:58
Yes with Trigger .Look Booksonline for it. You can suser_name() to track who did it.
Go to Top of Page

billdng
Starting Member

17 Posts

Posted - 2008-12-03 : 22:10:59
quote:
Originally posted by sodeep

Yes with Trigger .Look Booksonline for it. You can suser_name() to track who did it.



thanks. but what does suer_name() stand for ? how can i find the client's name or IP addr ?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-03 : 23:52:49
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=56415
Go to Top of Page
   

- Advertisement -