| Author |
Topic  |
|
|
johnsql
Posting Yak Master
USA
161 Posts |
Posted - 08/30/2007 : 15:07:25
|
Experts,
I’d like to know whether there is some way in SQL Server 2000 (using script or GUIs) to view “date modified” of all stored procedures or some sp in a database. Please show me how I can do that. Thanks in advance. johnsql
|
|
|
jsmith8858
Dr. Cross Join
USA
7423 Posts |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
USA
7007 Posts |
|
|
rmiao
Flowing Fount of Yak Knowledge
USA
7266 Posts |
Posted - 08/30/2007 : 21:56:26
|
| Don't know direct way in sql2k. |
 |
|
|
johnsql
Posting Yak Master
USA
161 Posts |
Posted - 09/04/2007 : 13:55:40
|
quote: Originally posted by jsmith8858
http://weblogs.sqlteam.com/joew/archive/2007/08/29/60312.aspx
- Jeff http://weblogs.sqlteam.com/JeffS
I am using SQL Server 2000, and the error when running the system sp the site shows. The sp seems th be in SLQ Server 2005, doesn't it? Is there some way to know that info with SQL Seever 2000 I am using?
SELECT [name] ,modify_date ,create_date , *FROM sys.proceduresspecified cannot be found.Server: Msg 208, Level 16, State 1, Line 1 Invalid object name 'sys.procedures'.
|
 |
|
|
jsmith8858
Dr. Cross Join
USA
7423 Posts |
Posted - 09/04/2007 : 14:09:05
|
As MVJ points out, that is only available in SQL 2005, a point which I missed. As far as I know, unfortunately, there is no way to do this in SQL 2000.
- Jeff http://weblogs.sqlteam.com/JeffS
|
Edited by - jsmith8858 on 09/04/2007 14:13:27 |
 |
|
|
Kristen
Test
United Kingdom
22191 Posts |
Posted - 09/04/2007 : 14:36:36
|
If you DROP/CREATE the Sproc then the CRDATE will be set (in the sysobjects table).
If you use ALTER then there is no record of when it was changed.
We put a "logging statement" in our Sproc scripts something like:
--
PRINT 'Create procedure MySProc'
GO
EXEC MyLogginSProc 'MySProc', '070904'
go
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'[dbo].[MySProc]') ... )
DROP PROCEDURE dbo.MySProc
GO
CREATE PROCEDURE dbo.MySProc
...
which logs the time the Sproc was created, and the version, which we use to review when, and which version, things happened.
Kristen |
 |
|
|
johnsql
Posting Yak Master
USA
161 Posts |
Posted - 09/05/2007 : 16:33:01
|
quote: Originally posted by Kristen
If you DROP/CREATE the Sproc then the CRDATE will be set (in the sysobjects table).
If you use ALTER then there is no record of when it was changed.
We put a "logging statement" in our Sproc scripts something like:
--
PRINT 'Create procedure MySProc'
GO
EXEC MyLogginSProc 'MySProc', '070904'
go
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'[dbo].[MySProc]') ... )
DROP PROCEDURE dbo.MySProc
GO
CREATE PROCEDURE dbo.MySProc
...
which logs the time the Sproc was created, and the version, which we use to review when, and which version, things happened.
Kristen
Kristen, So this is a workaround. Thanks for your post. johnsql |
 |
|
| |
Topic  |
|