Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
General
»
How to List All table Modified, altered,...
How to List All table Modified, altered, updated, inserted in sqlserver 2000 database Last N Days.
Rate Topic
Display Mode
Topic Options
Author
Message
Pritam Salvi
Pritam Salvi
Posted Tuesday, October 26, 2010 3:49 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Friday, November 26, 2010 9:38 PM
Points: 102,
Visits: 53
How to List All table Modified, altered, updated, inserted in sqlserver 2000 database Last N Days.
I have two databases which is Thomasnet_N other one one Thomasnet_New
I want to find out which is recently updated which one i want to use for live testing.
Regards,
Pritam Salvi
SQL DBA
Mumbai. India[size="7"][/size]
Post #1010634
Pritam Salvi
Pritam Salvi
Posted Wednesday, October 27, 2010 2:46 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Friday, November 26, 2010 9:38 PM
Points: 102,
Visits: 53
I have this query to find out created table in last N days.
Select name, id, crdate
From sysobjects
Where type ='U'
and DateDiff(D,refdate,getdate()) < 7;
But it will get last created, I want last modified or insert/updated table.
Is there any idea?
Regards,
Pritam Salvi
SQL DBA
Mumbai. India[size="7"][/size]
Post #1011338
steveb.
steveb.
Posted Wednesday, October 27, 2010 3:36 AM
SSCrazy
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 7:42 AM
Points: 2,802,
Visits: 7,103
you wont be able to get that information by default sorry, you can build this functionality in with triggers however this will only help for the future.
Post #1011351
Pritam Salvi
Pritam Salvi
Posted Wednesday, October 27, 2010 3:52 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Friday, November 26, 2010 9:38 PM
Points: 102,
Visits: 53
Thanks for reply Steveb.
Regards,
Pritam Salvi
SQL DBA
Mumbai. India[size="7"][/size]
Post #1011356
GilaMonster
GilaMonster
Posted Wednesday, October 27, 2010 4:10 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 12:59 PM
Points: 37,640,
Visits: 29,895
You'll need a trace to get the DDL (schema) changes as SQL 2000 has no DDL triggers.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1011369
Pritam Salvi
Pritam Salvi
Posted Wednesday, October 27, 2010 4:19 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Friday, November 26, 2010 9:38 PM
Points: 102,
Visits: 53
Thanks Gail.
Regards,
Pritam Salvi
SQL DBA
Mumbai. India[size="7"][/size]
Post #1011377
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.