function SaveToFile(const FileName: string; Format: TTdbTableFormat): Integer;
Description
Use SaveToFile if you want to make a snapshot of your data set. SaveToFile internally uses the TTdbBatchMove component to create a file in one of the available formats containing all the data of the data set. Format defines the file type of the file.
This method is especially useful when you want to store the result set of a query for further processing. You may e.g. store the result set in TurboDB format and then open a TTdbTable component for it or run another query on it.