How to save file names to sql database

Feb 24, 2009 at 2:10 AM
I have been trying for some time now to save the file names of the file I have uploaded to a folder and store that into s sql database.
Is there any samples for this in vb code or C# using code behind (server side)?
How do you get the file name, so I can save to array then save to database.
Any help would be greatly appreciated.
I know how to use SQL but I need to find a way to get the file names.

Thank you

Feb 24, 2009 at 12:00 PM
Use custom adapter and there you can override ProcessFile method. In this event you will get file name which you can easily update into your SQL database.