FileToDB » Use cases » Import a SQL file
Download FileToDB Free Trial » Buy FileToDB Now »
A vendor ships a reference table as a .sql script, a colleague sends a data extract as INSERT statements, or your own export from another machine left a file behind. What you have is text that a database is supposed to swallow, and a database you can reach - but the file is on your laptop and the database is somewhere else.
Some databases' command-line clients can run a local script; some cannot read a file from where you are sitting; some simply are not installed on this machine.

Because the file is read as data rather than piped to a client, a file written for one engine can still be loaded into another - the values are inserted by FileToDB, which knows how to talk to all of them. A file with several tables in it is one file into many tables.
CREATE TABLE and INSERT. Procedures, triggers, grants, transactions and engine-specific control statements are not executed for you.Several tables in the file: one file into many tables. CSV or Excel instead: file to table. A whole folder at once: folder to table. Doing it repeatedly: sessions, command line. Producing such a file from a database: DBToFile.