DBToFile » Use cases » Export as SQL inserts
Download DBToFile Free Trial » Buy DBToFile Now »
A CSV cannot go everywhere. If the receiving side is a database you only reach through a SQL client, or a build step that seeds a test database, or a deployment that has to load a small reference table, the portable format is a text file of INSERT statements.
Writing those by hand is not an option, and a dump tool that exists only for the database you are leaving is not always available - especially when the source is Access, DBF or SQLite.
.sql file to the other side and run it in the target database's client.
The same mechanism reads Access, SQL Server, Oracle, MySQL/MariaDB, PostgreSQL, SQLite, DB2 and DBF, so a table can be moved out of a database whose own tooling offers no scriptable export at all. Several tables at once is tables to files, and several similar tables merged into one file is similar tables to one file.
INSERT statements. Indexes, foreign keys, triggers, views and permissions are not scripted - check what the target already has, or create the table first.Only part of the table: query to file. Many tables: tables to files. Formats and databases: supported conversions. Every morning instead of once: on a schedule. Getting the rows in on the other side: FileToDB.