Does anyone have a script (or a resource they can point me to) that will dump the entire contents of a database into a .csv file?

I want to be able to point people to a URL that will open up the .csv file in Excel...

Thanks for all help in advance!

jb