Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2003
    Posts
    33

    Unanswered: MSSQL 2000: How can we track table/sp/function changes?

    My company would like to start keeping track of everytime a table, stored procedure, or function is changed.

    What is the best way to do this?

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Option 1)
    Create a database for storing metadata on all the other databases. Nightly, run a query that loops across all database and records all the objects along with their checksum values, and notes any objects who's checksum value has changed.

    Option 2)
    Upgrade to SQL Server 2005 and create database triggers to log changes to objects.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

  3. #3
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    sourcegears vault, visual sourcesafe. nothing makes it into our software\database builds that is not in our sourcecode management software.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  4. #4
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    5,799
    Provided Answers: 11
    Revoke sysadmin/DBO rights from everyone but the DBAs.

  5. #5
    Join Date
    Aug 2002
    Location
    Scotland
    Posts
    1,578
    As suggested you cna take help of Visual Sourcesafe or PVCS in order to take care of object changes.
    --Satya SKJ
    Microsoft SQL Server MVP
    [IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •