zoukankan      html  css  js  c++  java
  • 查询表、存储过程、触发器的创建时间和最后修改时间(转)

    --查询建立时间
    --表
    select * from sysobjects where id=object_id(N'表名') and xtype='U'
     
    --表的结构  
    select * from syscolumns where id=object_id(N'表名')
       
    --存储过程  
    select * from sysobjects where id=object_id(N'dqtx') and xtype='P' 

    --查询最后修改时间
    --存储过程
    select name,modify_date from sys.all_objects where name = '存储过程' and type='P' order by modify_date desc

    --触发器
    select name,modify_date from sys.all_objects where name = '存储过程' and type='TR' order by modify_date desc

    --表
    select * from sys.all_objects where name = '存储过程' and type='u' order by modify_date desc

    如果修改后能查到最后修改的IP地址就更好了,希望大家补充~~

  • 相关阅读:
    学习进度条54
    学习进度条53
    学习进度条52
    学习进度条51
    学习进度条50
    学习进度条49
    学习进度条48
    学习进度条47
    学习进度条45
    线程池中的阻塞队列选择
  • 原文地址:https://www.cnblogs.com/xmyy/p/2839198.html
Copyright © 2011-2022 走看看