question

artistlover avatar image
artistlover asked

Sql 2008 database changes

Does anyone know of any free software that i can install or a way to do so in sql. That will show me changes made to the database. Like delete procedures or altering them?
sql
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JohnM avatar image JohnM commented ·
Just to clarify, you want to be able to see what was changed after the fact correct?
0 Likes 0 ·
Grant Fritchey avatar image Grant Fritchey ♦♦ commented ·
This site runs off of votes. Please mark all helpful answers by clicking on the thumbs up next to those answers. If any one answer lead to a solution, please indicate that by clicking on the check mark next to that answer.
0 Likes 0 ·
Mister Magoo avatar image
Mister Magoo answered
If free is your main requirement then run the Schema Changes History report in SSMS accessible through the right click menu in Object Explorer. It only shows changes since the last reboot, and it won't show the detailed breakdown of code changes, just that an object was changed and it resets on server restart... If you want anything more detailed, then store your code in a source control system, forbid ad-hoc changes to the database and script a periodic compare - that would be free.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Venkataraman avatar image
Venkataraman answered
You can define DDL trigger to track the stored procedure changes. It is simply code based out of the box solution and does not cost you anything. Refer to this post: http://www.sqlteam.com/article/using-ddl-triggers-in-sql-server-2005-to-capture-schema-changes on creating DDL triggers for create_procedure, alter_procedure, drop_procedure
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Grant Fritchey avatar image
Grant Fritchey answered
You can use extended events to capture T-SQL statements on the system. That would be one way to know when there have been changes to the objects.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.