Hi there,
You have a few options. For example you could:
Get your file names / path from the database (using ADO.NET, LINQ to SQL, Entity Framework or some other data access method) and then loop over the file names and use System.IO.File.Exists to see if the file exists.
Alternatively, you can take a look here:
http://imar.spaanjaars.com/424/fun-with-linq Warning: DON'T use this with many files as the performance is bad. Just see it as a fun (ab)use of LINQ to SQL.
Cheers,
Imar