SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 How to find last updated date for DB items?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

achiribo
Starting Member

3 Posts

Posted - 02/27/2007 :  10:46:42  Show Profile  Reply with Quote
Is there a way to find out when a stored procedure (or a view or any other object) was last updated? I know how to find the creation date, but often we need to find out the updated date, for example, to confirm what items have changed in a development environment so they can be moved to production. Any ideas or suggestions would be greatly appreciated.
Thanks!

AndrewMurphy
Flowing Fount of Yak Knowledge

Ireland
2916 Posts

Posted - 02/27/2007 :  11:55:21  Show Profile  Reply with Quote
1. No.
2. Use a source-safe process to control objects changes/migrations to production.

see best practices on this issue detailed by other members on this site....nr, tkizer, kristen, robvolk, merkin, etc...
Go to Top of Page

Kristen
Test

United Kingdom
22403 Posts

Posted - 02/27/2007 :  12:31:27  Show Profile  Reply with Quote
An Andrew has said.

I strongly recommend that you store the "Source Code" for your objects in separate files, and manage that with Version Control - rather than just changing things in the database directly.

A half-way-house would be to script the whole database, e.g. each night, and then put that script through the Version Control system.

jezemine has a tool that will do that, I believe.

However, there are database comparison tools which can script the differences between two databases - e.g. your Version1 database and the newer Version2 database; you could then use that as the basis for a release script.

RedGate have such a tool, but I expect there are others.

Kristen
Go to Top of Page

achiribo
Starting Member

3 Posts

Posted - 02/27/2007 :  13:37:01  Show Profile  Reply with Quote
That's what I thought the answer would be. Source control will be for us, then. Thanks for the quick replies.


Edited by - achiribo on 02/27/2007 13:37:41
Go to Top of Page

Kristen
Test

United Kingdom
22403 Posts

Posted - 02/28/2007 :  01:55:51  Show Profile  Reply with Quote
FWIW this is how we do our roll-outs from DEV to PRODUCTION:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=74366

Discussion on various flavours of Version Control here:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61248

Kristen
Go to Top of Page

achiribo
Starting Member

3 Posts

Posted - 02/28/2007 :  10:51:34  Show Profile  Reply with Quote
Thanks a lot for the very informative post, Kristen! I have bookmarked it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000