Redian新闻
>
请问怎样找到StoredProcedures的修改记录?
avatar
请问怎样找到StoredProcedures的修改记录?# Database - 数据库
l*n
1
数据库是MS SQL 2005。
好像只能找到创建和最后修改的时间。
有没有办法列出所有的修改记录,包括时间和账号?
谢谢。
avatar
w*e
2
除非你有source control的tools, 否则但从SSMS里是看不出来的.

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

avatar
s*m
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) .........
avatar
l*n
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) .........

avatar
p*l
5
Create a DDL After trigger to log it. It is very easy. There is one in the
sample database - AdventureWorks.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。