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

How to realize the creation time and last modification time of SQL query table, stored procedure and trigger

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article focuses on "how to achieve SQL query table, stored procedures, trigger creation time and final modification time", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to achieve SQL query out of the table, stored procedures, trigger creation time and final modification time"!

-- query creation time-- table select * from sysobjects where id=object_id (N' table name') and xtype='U'-- table structure select * from syscolumns where id=object_id (N' table name')-- stored procedure select * from sysobjects where id=object_id (Numberdqtx') and xtype='P'-- query last modification time-- stored procedure select name Modify_date from sys.all_objects where name = 'stored procedure' and type='P' order by modify_date desc-- trigger select name,modify_date from sys.all_objects where name = 'stored procedure' and type='TR' order by modify_date desc-- table select * from sys.all_objects where name = 'stored procedure' and type='u' order by modify_date desc so far I believe that "how to achieve SQL query table, stored procedures, trigger creation time and the final modification time" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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