mssql-cmd - SQL Server interactive and batch query command-line tool »
Download mssql-cmd Free Trial »
By default mssql-cmd loads into the current schema (or the current database for MySQL). Use schema= to write to another schema/database when the login user has INSERT/UPDATE privilege there.
mssql-cmd> load schema=other_schema table=orders datafile=e:\temp\orders.csv delimiter="," header=y loadtype=replace;
Batch:
mssql-cmd dsn="user:password@host:1433/dbname" task=load schema=other_schema table=orders datafile=e:\temp\orders.csv delimiter="," header=y loadtype=replace quit=y
For MySQL, the schema parameter is the database name. See also load parameters.