Withdata Software

Producing high-quality database tools

Main menu

Skip to primary content
Skip to secondary content
  • Withdata Software
  • Blog
  • Categories
  • Tags

Tag Archives: command line

Post navigation

Newer posts →

How to execute sql file via command line for DB2

Posted on August 29, 2013 by Shiji Pan

You can save a .sql file to your hard drive, and execute it using the DB2 command line using: db2 -vtf C:\path\to\test.sql -v echoes the command text back to the command line -t sets the statement terminator to ;. -f tells the command line to load the commands from the file. See other command ... Read more

Posted in DB2 | Tagged command line, command line execute sql, DB2

How to execute sql file at SQL Server command line

Posted on August 29, 2013 by Shiji Pan

You can use sqlcmd to run a Transact-SQL script file. A Transact-SQL script file is a text file that can contain a combination of Transact-SQL statements, sqlcmdcommands, and scripting variables. To run the script file 1.Open a command prompt window. 2.In the Command Prompt window, ... Read more

Posted in Sql Server | Tagged command line, command line execute sql, Sql Server

How to execute sql file at MySQL command line

Posted on August 29, 2013 by Shiji Pan

If you’re at the MySQL command line mysql> you can declare the SQL file as source, like: mysql> source 'path/to/test.sql'; Or use the MySQL command line client: mysql -hhostname -uuser database < path/to/test.sql ... Read more

Posted in Mysql | Tagged command line, command line execute sql, Mysql

Import data to Oracle

Posted on September 7, 2011 by Shiji Pan

OraCmd is a command-line tools that can run sql command, import/export data, even without Oracle client. OraCmd takes the pain out of manual importing/exporting tasks, and avoids installing the Oracle client. Convenient, powerful Import Oracle data from file(csv, txt). Import Oracle data to ... Read more

Posted in OraCmd | Tagged command line, flat file, import, Oracle

Export Oracle data

Posted on September 7, 2011 by Shiji Pan

OraCmd is the fast and easy command-line tool to import/export data, even without Oracle client. OraCmd takes the pain out of manual importing/exporting tasks, and avoids installing the Oracle client. Convenient, powerful Export from both table and query. Export all tables data in a schema to ... Read more

Posted in OraCmd | Tagged command line, export, flat file, Oracle

Post navigation

Newer posts →

Recent Posts

  • Unload to CSV for Databases
  • Use Cases for Dumping to CSV
Withdata Software. ©2004 - 2025 All rights reserved.