Withdata Software

Batch convert SQL files to TXT files

Want to batch convert SQL files to TXT files?

Try Withdata Data File Converter, a desktop SQL to TXT converter for Windows, MacOS, and Linux, Batch convert SQL to TXT, Easy and Fast.

Download DataFileConverter
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit

Batch convert SQL files to TXT files

Select source SQL files -> Set TXT files -> Convert SQL files to TXT files

Click “Start a New Convert” at task dialog.

then show the wizard.

Select From “Files” “SQL” To “Files” “TXT”.

1. Select source SQL files.

And config the first source SQL file.

2. Config target TXT files.

3. Summary.

List source SQL files.

4. Convert SQL files to TXT files, 1 SQL to 1 TXT.

After converting, you can view output TXT files.


More about SQL to TXT converter

See also:

SQL → TXT reference

Type mapping

Value kindin SQLin TXT
IntINT1234, or right-aligned in a fixed-width column
BigintBIGINT9007199254740993
DecimalDECIMAL(p,s)1234.56
FloatDOUBLE PRECISION1.234e+10
TextVARCHAR(n)written as-is; padding depends on the chosen layout
Long textTEXT / CLOBwritten as-is
DateDATEwhatever the writer chose
DatetimeTIMESTAMPwhatever the writer chose
BinaryBLOB / BYTEAnot representable
BooleanBOOLEAN / SMALLINTY / N, or 1 / 0, or TRUE / FALSE
JSONJSON / TEXTwritten as-is

Dialect differences

Both SQL and TXT are file formats, so what differs below is how each one chooses to represent a value.

Propertyin SQLin TXT
identifiersTwo competing conventions: single-quoted literals and diale...None by convention
datesDepends on the dialect: DATE literals, TO_DATE(), or plain ...Whatever the writer produced; no convention is guaranteed
binaryDialect-specific: X-quoted literal, 0x hex, or decode()Not supported
separatorStatement terminators (;)Whatever was chosen - often fixed column widths
encodingNo declarationNo declaration - UTF-8 works only with a BOM
typingTypes belong to the target database, and they differ betwee...None - every field is text
shapeStatements; a dump usually means CREATE TABLE plus INSERT rowsFree form; a parser has to be told the layout
ceilingNo formal limit, but a single INSERT statement has to fit i...No formal limit

Data File Converter without the manual work

For batch jobs, large files and scheduling use the Data File Converter converter — an offline desktop app for Windows, Linux and macOS. Free trial.