Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 insert record

Author  Topic 

gangadhara.ms
Aged Yak Warrior

549 Posts

Posted - 2011-01-23 : 21:07:32
Hi All,

I have table with Identity column with seed of 1. And i need to find the records inserted for a last one week which are inserted into the table how do we find this ?

Thanks,
Gangadhar

Thanks,
Gangadhara MS
SQL Developer and DBA

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-01-23 : 22:52:55
You'd need a date/time column in that table that used GETDATE() on inserts. So do you have such a column?

Identity has nothing to do with time.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -