Batch import JSON into SQL Server TEXT / NTEXT / VARCHAR(MAX) / NVARCHAR(MAX)

Want to batch import JSON documents into SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB) column?

Try Withdata DBBlobEditor, a SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB) editor, Bulk import JSON into SQL Server, East and Fast.

Download DBBlobEditor Download DBBlobEditor

Batch import JSON documents to SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB) column

Run DBBlobEditor, login to SQL Server.

Batch import json files into SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB) - login to SQL Server

Click “Start New Task – Import LOB From Files” at task dialog.

Batch import json files into SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB)  - Task Window

then show the wizard.

1. Configure import JSON settings.

Batch insert json files into SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB) - config

2. Bulk import JSON files to SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB).

Batch save json files into SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB)  - import

then you can see importing results

Batch import json files into SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB)  - view


More about SQL Server [TEXT, NTEXT, VARCHAR(MAX), NVARCHAR(MAX)] (CLOB) importer

JSON → SQL Server reference

Type mapping

Value kindin JSONin SQL Server
Int1234 (number)int
Bigint9007199254740993bigint
Decimal1234.56 (number)decimal(p,s)
Float1.234e10 (number)float
Text"text" (string)nvarchar(n)
Long text"multi-line\ntext" (escaped newline inside a string)nvarchar(max)
Date"2026-09-18" (string)date
Datetime"2026-09-18T14:30:00Z" (string)datetime2
Binary"base64:..." (string)varbinary(max)
Booleantrue / false (boolean)bit
JSONnested object or array, kept as structurenvarchar(max)

Dialect differences

JSON is a file format and SQL Server is a database server, so the target has to be told the types the file never carried – the rows below are where the two sides diverge.

Propertyin JSONin SQL Server
port—1433
identifiersDouble quotes; backslash escapes[square brackets]
row limit—SELECT TOP n
datesNo date type: dates arrive as strings and the reader must p...datetime, datetime2, date, time
long text—nvarchar(max)
binaryNot supported natively - base64 inside a stringvarbinary(max)
separatorBraces and commas—
encodingUTF-8 by definition—
typingstring, number, boolean, null, object, array - no date type—
shapeNested objects and arraysTables of rows and columns
ceilingWhole document is usually parsed into memory—

Command line

SideCommand
SQL Serverbcp
SQL Server (load)bcp, or BULK INSERT

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.