Knowing system table value changes

  • Dear Friends....

                     How can i know that if i change any table structure. is there any other effect is occure in any system table thet field value is change if i m do any changes into table structure????  

                         If the table is exist in sql server 2005 in which any table structure changes is effeted then please give that system table with column name.

     

    Thanks.........

  • Hi Pravin,

    have a look at the sys.tables system view. It contains a modify_date column (it is inherited from sys.objects, which has this information for all schema objects).

    You can read more on sys.tables on http://msdn2.microsoft.com/en-us/library/ms187406.aspx

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • SQL Server 2005 has the ability to track table changes, if you create the appropriate triggers. Then you will know what has changed and when. You can find info on this at microsoft web sites, books online, and a few other SQL Server websites have articles on it.

     

    Here is a link From SQLServerCentral on the subject http://www.sqlteam.com/article/using-ddl-triggers-in-sql-server-2005-to-capture-schema-changes

     

    Assuming I am understanding your post

  • DDL triggers are indeed nice, but it is rather common to disable all of them before certain changes So while they are really useful, it is important to keep in mind that they not always show all the modifications. They are good however for detecting non-malicious changes.

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • good to know. Thanks

  • Hi Andras:

    Thanks for your reply.

    In SQL 2000 we had a field called "schema_ver" in sysobjects which changes whenever any alteration occurs to any object. Is there any equivalent system object field in  SQL 2005 which is equivalent to schema_ver?

    Thanks again!

    Pravin

  • Hi Andras:

    Thanks for your reply.

    In SQL 2000 we had a field called "schema_ver" in sysobjects which changes whenever any alteration occurs to any object. Is there any equivalent system object field in  SQL 2005 which is equivalent to schema_ver?

    Thanks again!

    Pravin

  • Hi Pravin,

    As far as I know there is no equivalent to schema_ver in 2005. The only thing that is similar is the modify_date of the sys.objects table I mentioned above.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • Thank you....... Andras

Viewing 9 posts - 1 through 8 (of 8 total)

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