🧚 Hey, listen! Try our modern & open source database GUI Download
March 15, 2023 By Beekeeper Studio Staff

You want to import your sales orders from a comma delimited file into a SQL Server or MSDE table called orders. The file looks like this:

345,John Doe, 400
346,Mark Smith,450
347,Robert,400

Run the following SQL command in Beekeeper Studio, SQL Server Management Studio, or any SQL client. Replace lower case text with your own:

BULK INSERT [orders]
FROM 'c:orders.csv'
WITH (FIELDTERMINATOR = ',')

Result (order table):

OrderID Name Price
345 John Doe 400
346 Mark Smith 450
347 Robert 400

Make sure the field terminator (‘,’) in this example is not part of any actual value. The field Name for instance cannot be ‘Doe, John’ since the ‘,’ would be considered as a field terminator.

The table has to be similar in format to the file (same number of fields and same data type.)

Beekeeper Studio Is A Free & Open Source Database GUI

Best SQL query & editor tool I have ever used. It provides everything I need to manage my database. - ⭐⭐⭐⭐⭐ Mit

Beekeeper Studio is fast, intuitive, and easy to use. Beekeeper supports loads of databases, and works great on Windows, Mac and Linux.

Beekeeper's Linux version is 100% full-featured, no cut corners, no feature compromises.

What Users Say About Beekeeper Studio

★★★★★
"Beekeeper Studio completely replaced my old SQL workflow. It's fast, intuitive, and makes database work enjoyable again."
— Alex K., Database Developer
★★★★★
"I've tried many database GUIs, but Beekeeper strikes the perfect balance between features and simplicity. It just works."
— Sarah M., Full Stack Engineer

Ready to Improve Your SQL Workflow?

download Download Free