Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query for new input

Status
Not open for further replies.

biry

Technical User
Nov 5, 2004
127
0
0
CA
i was wondering if i could be informed by a query, what items or values were inputed into the database yesterday.

thanks
 
Only if you are storing the record create date in your table. I almost always have a field for CreateDate, LastModifiedDate and ModifiedBy in my important tables. Then have the database fill these in automatically through default values or triggers. Then the query to see what was recently entered is a simple one with CreateDate = getdate()-1 in the where clause.

Questions about posting. See faq183-874
Click here to learn Ways to help with Tsunami Relief
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top