mtm81
11-07-2007, 08:51 AM
Hi,
I have an array made up from the filenames found in a folder on the server (suing filesystem object to gather the names in a loop)
For each of the items in the array, I need to check for a match in a table in my SQL database that runs the site.
This is just to check if the database has a record of that file or not..
I can think of a way of working whereby I loop each item in the array and check it individually against the database using a recordset or SP query.. however I suspect there is a much better method that I'm unaware of.
Anyone offer me some pointers?
I have an array made up from the filenames found in a folder on the server (suing filesystem object to gather the names in a loop)
For each of the items in the array, I need to check for a match in a table in my SQL database that runs the site.
This is just to check if the database has a record of that file or not..
I can think of a way of working whereby I loop each item in the array and check it individually against the database using a recordset or SP query.. however I suspect there is a much better method that I'm unaware of.
Anyone offer me some pointers?