HOW TO TRACK ALL QUERY IN A DATABASE IN A TABLE FORMAT

  • DEAR ALL,

    HOW CAN I TRACE ALL THE QUERIES WHICH IS RUN IN NEW QUERY WINDOW AND IT AUTOMATICALLY INSERT

    INTO A TABLE IN ROW AND COLUMN FORMAT.

    EXAMPLE-IF I AM WRITING SELECT ,UPDATE,DELETE,INSERT ETC QUERY

    THE QUERY WHICH IS RUN WILL SAVE INTO A TABLE BY COLUMN

    USER NAME-> LOGIN NAME

    USER MACHINE NAME-> INSTANCE NAME OR PC NAME EG-IVAN-PC,RTM,

    QUERY RUN TIME- > WHEN THE QUERY HAS BEEN RUN.

    THE ENTIRE QUERY-> EG-SELECT * FROM TABLENAME.

  • Please don't cross post. It just wastes people's time and fragments replies

    No replies to this thread please. Direct replies to http://www.sqlservercentral.com/Forums/Topic1075325-1550-1.aspx

    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

Viewing 2 posts - 1 through 1 (of 1 total)

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