SQL query for files created today

     I need a sql query that shows files created today, is that possible?

SolidworksSolidworks Pdm enterprise Pdm
Answers 1
SF
SF 2013-09-20 Best Answer

Shankaran,

Play around with this, there are a lot of different dates in the revisions table to try:

select Path + filename, r.Date from

Documents d

inner join DocumentsInProjects dp on d.DocumentID = dp.DocumentID

inner join Projects p on p.ProjectID = dp.ProjectID

inner join Revisions r on r.DocumentID = d.DocumentID and r.RevNr = 1

where DATEDIFF(HOUR, r.Date, GETUTCDATE()) < 24