help. Trigger to create log file

  • I want to create log file in my projec.

    when user login my program, his imformation will save. Then input log file.

    In database have table store this imformation.

    I think trigger can use to do this.

    who can help me ? thanks

  • U can create insert trigger on Login table or on the table where u want to log info...

    U can store the logged data in tables...

  • thanks. you can give me example ?

    but, a lots table, must i creat all it table ?

    :w00t:

  • I think you're going to have to explain in more detail what it is you want to do here.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I found an nice script for creating auditing triggers on thsi very site a long time ago! It is called AutoAudit. But like GilaMonster said you really need to define what the purpose is.

    Think great, be great!

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply