I could write a VB 6.0 program to connect to an ODBC source and output the result to a text file for you. But I've seen better days. I am sure that someone else here can do it using an ADO record set, ADO connection, and then writing out to a text file based on command line parameters for the ODBC source, the query, and the filename. Or heck, almost any other language should be able to do it, Delphi, C++, etc.