User Table

  • Is there any possibility in identifying by which user and from which system a particular user table in a user database is created? in sys.tables i am able to see creation and modified date but how to identify the IP in which it is created

  • You can get that information by reading the Default Trace. Please refer this.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

  • Adiga (8/9/2010)


    You can get that information by reading the Default Trace. Please refer this.

    This method is only useful if the table was created recently enough for the default trace to have been not yet overwritten. If you want a permanent record of who did what and where then one way is to use DDL triggers to log activity such as this to a separate database.

    John

  • John Mitchell-245523 (8/9/2010)


    If you want a permanent record of who did what and where then one way is to use DDL triggers to log activity such as this to a separate database.

    John

    Do you have a link or code example, John?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Jeff

    Unfortunately I don't. One of my colleagues has written a sophisticated application for use in house. It collects data from servers about all sorts of stuff - file space, disk space, DDL changes, job failures and so on. It uses DDL triggers, DML triggers and Service Broker. As far as I know, he isn't planning on releasing it to market!

    John

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

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