I need a utility to run a SQL command then export a file into CSV format - in batch.  Something that can be automated to take data from the Pervasive database and just make a simple flat file - in an automated way.
Will Squirrel do this - if so how do I run it from command line?  If not, do you have any suggestions for what would work? I'm helping a school system that has no money - so please - nothing that isn't inexpensive or Freeware.