SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 last insert date
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

chbala85
Starting Member

49 Posts

Posted - 07/05/2013 :  09:27:41  Show Profile  Reply with Quote
Hi,

My question: i have database emit046 here i need all table last insert/update/deleted date time information required.

please help.........

Best Regards,

Krsh

James K
Flowing Fount of Yak Knowledge

3758 Posts

Posted - 07/05/2013 :  09:55:13  Show Profile  Reply with Quote
If there are no audit tables, there is no reliable way to do this. You can try to piece together what might have been going on using traces, procedure cache etc., but none of those are click-a-button-get-the-results type of things.
Go to Top of Page

immad
Posting Yak Master

Pakistan
222 Posts

Posted - 07/06/2013 :  07:21:19  Show Profile  Reply with Quote
quote:
Originally posted by chbala85

Hi,

My question: i have database emit046 here i need all table last insert/update/deleted date time information required.

please help.........

Best Regards,

Krsh



That information is not stored anywhere. If you need that, you need triggers on the tables.

immad uddin ahmed
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 07/07/2013 :  10:08:15  Show Profile  Reply with Quote
Otherwise you should be on sql 2008 or above and must have implemented CDC (Change Data Capture) feature

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000