select * from foo into linked list of object pointers foreach object pointer Retrieve the object Write its contents to a temporary file in .csv format fork a bcp command to load the data into Sybase