由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 请问怎样找到StoredProcedures的修改记录?
相关主题
Stored Procedure?Help: stored procedure in oracle
run SQL stored procedure from python请教:how to call a COM object in a stored procedure?
请问如何DEPLOY STORED PROCEDURE啊Stored Procedure的Is和As有什么区别,还有 ······
请推荐关于Stored Procedure的书[合集] Stored Procedure的Is和As有什么区别,还有 ······
为啥Oracle stored procedure 里面不建议用 temporary table?#在SQL里啥子意思
query analyzer VS. Stored procedure改写(migrate) stored proc 问题
SQL debug step into a store procedure from another one (转载)如何让SQL 2005 CLR Trigger返回结果给Stored Procedure用?
Can I use array in SQL stored procedure?怎么样提高SQL SERVER的编程水平?
相关话题的讨论汇总
话题: 修改话题: 记录话题: ddl话题: create
进入Database版参与讨论
1 (共1页)
l********n
发帖数: 200
1
数据库是MS SQL 2005。
好像只能找到创建和最后修改的时间。
有没有办法列出所有的修改记录,包括时间和账号?
谢谢。
w*******e
发帖数: 1622
2
除非你有source control的tools, 否则但从SSMS里是看不出来的.

【在 l********n 的大作中提到】
: 数据库是MS SQL 2005。
: 好像只能找到创建和最后修改的时间。
: 有没有办法列出所有的修改记录,包括时间和账号?
: 谢谢。

s**m
发帖数: 1564
3
1) allow modifying Stored Procedures through only source control, not
allowing changing/running scripts within SSMS directly. When necessary, Not
allowing viewing stored procedures in text format.
2) If you have previledge, create a trigger over DDL, then log the change
along the new scripts. thus you can compare two version when needed.
3) .........
l********n
发帖数: 200
4
这样说来,MSSQL没有保留这些记录,除非管理员自己想办法。
我觉得如果有个系统的Table/View记录所有用户的Table/View/StoredProcedure/
Function的修改时间和账号挺方便的,也很容易实现。不知为什么MSSGQL不愿意保留这
些记录?

Not

【在 s**m 的大作中提到】
: 1) allow modifying Stored Procedures through only source control, not
: allowing changing/running scripts within SSMS directly. When necessary, Not
: allowing viewing stored procedures in text format.
: 2) If you have previledge, create a trigger over DDL, then log the change
: along the new scripts. thus you can compare two version when needed.
: 3) .........

p********l
发帖数: 279
5
Create a DDL After trigger to log it. It is very easy. There is one in the
sample database - AdventureWorks.
1 (共1页)
进入Database版参与讨论
相关主题
怎么样提高SQL SERVER的编程水平?为啥Oracle stored procedure 里面不建议用 temporary table?
【有什么说可以恶补一下data warehousing的知识?】query analyzer VS. Stored procedure
请教有关junior level的database support的面试SQL debug step into a store procedure from another one (转载)
SQL server stored procedure 求助Can I use array in SQL stored procedure?
Stored Procedure?Help: stored procedure in oracle
run SQL stored procedure from python请教:how to call a COM object in a stored procedure?
请问如何DEPLOY STORED PROCEDURE啊Stored Procedure的Is和As有什么区别,还有 ······
请推荐关于Stored Procedure的书[合集] Stored Procedure的Is和As有什么区别,还有 ······
相关话题的讨论汇总
话题: 修改话题: 记录话题: ddl话题: create