Batch import data from CSV files to Azure SQL database without programming

Want to batch import data from CSV files to SQL Server ?

Using FileToDB, a native GUI tool, you can batch import data from CSV files to SQL Server easily and fast, no need to program, just a few mouse clicks!

Support Windows, Linux, macOS.

Support large CSV files (big than 4GB).

Support multiple CSV file encodings: ANSI, UTF-8, UTF-8BOM, UCS-2LE (Unicode Little Endian), UCS-2BE (Unicode Big Endian), CP1250 (Central European), CP1251 (Cyrillic), CP1252 (Western European), CP1253 (Greek), CP1254 (Turkish ), CP1255 (Hebrew), CP1256 (Arabic), CP1257 (Baltic), CP1258 (Vietnamese), CP437 (United States), CP850 (Western European), CP852 (Central European), CP866 (Cyrillic), CP874 (Thai), CP932 (Japanese), CP936 (Chinese Simplified), CP949 (Korean), CP950 (Chinese Traditional), ISO-8859-1 (Western European), ISO-8859-2 (Central European), ISO-8859-15 (Latin 9), KOI-8 (Cyrillic), Macintosh (Western European).

Here you can download and install FileToDB.

Batch import data from CSV files to SQL Server

Choose SQL Server and logon.

convert online CSV file to SQL Server table - Choose SQL Server and logon

Click “Wizard – N Files To 1 Table” at task dialog.

convert online CSV file to SQL Server table - task window

Select the “CSV” file type.

Import file data to database table - select file type

then show the wizard.

1. Select a folder that constains CSV files.

Batch import CSV files data To SQL Server - select a folder

2. Config first CSV file importing options.

Batch import CSV files data To SQL Server - config first file

3. Select a SQL Server table and config fields.

Bulk load CSV files data To SQL Server - select table

4. Preview data.

Batch transfer CSV files data To SQL Server - preview

5. Import.

Batch copy CSV files data To SQL Server - import data

View imported data

Batch copy CSV files data To SQL Server - view data

You can schedule and automate this converting task by:

1) Save session and create .bat file.

2) Set scheduled task.


More about FileToDB – the tool to batch import data from CSV files to SQL Server

30-day free trial Download FileToDB

CSV → SQL reference

Type mapping

Value kindin CSVin SQL
Int1234INT
Bigint9007199254740993BIGINT
Decimal1234.56DECIMAL(p,s)
Float1.234e+10DOUBLE PRECISION
Textquoted only when it contains a comma or a quoteVARCHAR(n)
Long textmust be quoted; line breaks inside force multi-line recordsTEXT / CLOB
Date2026-09-18DATE
Datetime2026-09-18 14:30:00TIMESTAMP
Binarynot representable - base64 or hex stringBLOB / BYTEA
BooleanTRUE / FALSE, or 1 / 0 depending on the writerBOOLEAN / SMALLINT
JSONthe whole JSON value quoted, with internal quotes doubledJSON / TEXT

Dialect differences

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

Propertyin CSVin SQL
identifiersDouble quotes; a literal quote is doubled ("" )Two competing conventions: single-quoted literals and diale...
datesConventional text: 2026-09-18 or 2026-09-18 14:30:00Depends on the dialect: DATE literals, TO_DATE(), or plain ...
binaryNot supportedDialect-specific: X-quoted literal, 0x hex, or decode()
separatorComma ","Statement terminators (;)
encodingNo declaration - UTF-8 works only with a BOMNo declaration
typingNone - every field is textTypes belong to the target database, and they differ betwee...
shapeFlat table, optional header rowStatements; a dump usually means CREATE TABLE plus INSERT rows
ceilingNo formal limit; row count bounded by memoryNo formal limit, but a single INSERT statement has to fit i...

Convert your data online, free

Free in-browser converters for CSV, Excel, JSON, XML and SQL: Withdata Online Data Conversion. Large files, batch conversion or scheduling? See the offline desktop apps, or browse all data conversion tools.