Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Find the recently modified SP

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Find the recently modified SP

Expand "Programmability" for the database in SSMS, and click "Stored Procedures".

Select "View", "Object Explorer Details" in the menu bar.

Then, right-click in the right column header space and select "Date Last Modified". Click on the column header for descending order.

You can also use T-SQL to achieve:

Method 1:

SELECTname,create_date,modify_dateFROM sys.proceduresWHERE modify_date > '2016-01-01'ORDER BY modify_date DESC

Method 2:

SELECTspecific_name,created,last_alteredFROM INFORMATION_SCHEMA.ROUTINESWHERE routine_type = N'PROCEDURE'and last_altered > '2016-01-01'ORDER BY last_altered DESC

Of course, for the INFORMATION_SCHEMA.ROUTINES system view, we can also LIKE the ROUTINE_DEFINITION column by keyword to find the object defined with the keyword.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report