 |
 |
| SQL Server Tips: |
|
 |
 |

DATABASE DEVELOPMENT
Find when a stored procedure or function was last altered
Parthasarathy Mandayam 09.04.2002
Rating: --- (out of 5)




|
Find when a SQL Server stored procedure or function was last altered with this script.
SELECT specific_catalog, specific_schema, routine_type,
routine_name, created,last_altered
FROM INFORMATION_SCHEMA.ROUTINES
ORDER BY 1 asc, 2 asc, 3 asc, 4 asc
Reader Feedback
Andrew B writes: This tip is incorrect. There is no way to see when a stored procedure was altered. If you look at the source code to the view you will notice it returns the same data for CREATED and LAST_ALTERED -- see the following:
CREATED = o.crdate,
LAST_ALTERED = o.crdate
For More Information
- Feedback: E-mail the editor with your thoughts about this tip.
- More tips: Hundreds of free SQL Server tips and scripts.
- Tip contest: Have a SQL Server tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize -- submit your tip today!
- Ask the Experts: Our SQL, database design, Oracle, SQL Server, DB2, relational model, and data warehousing gurus are waiting to answer your toughest questions.
- Forums: Ask your technical SQL Server questions--or help out your peers by answering them--in our active forums.
- Best Web Links: SQL Server tips, tutorials, and scripts from around the Web.
 |

|
Rate this Tip
|
To rate tips, you must be a member of SearchSQLServer.com. Register now
to start rating these tips. Log in if you are already a member.
|


');
// -->
DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.
|
 |
|
|
 |
|
 |
 |
 |
 |
| TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of . |
|
| |
All Rights Reserved, , TechTarget |
|
|
|
|
|