UniDAC
Dumps database objects to the specified file.
TDADump
procedure BackupToFile(const FileName: string; const Query: string = '');
Call the BackupToFile method to dump database objects to the specified file.