This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
A hand tying small parcels into equal bundles with vermilion string in a post office loading bay.

BULK INSERT Batch Size and ROWS_PER_BATCH

September 1, 2024
Pinal Dave
SQL Tips and Tricks
Batch, CSV, SQL Log, SQL Server, SQL Transactions

Distinguish ROWS_PER_BATCH estimates from BULK INSERT commit batches, then review logging, locks, rejected rows, and atomic loading.

Read More
csv import

SQL SERVER – Troubleshooting Common CSV Import Issues

August 7, 2023
Pinal Dave
SQL Tips and Tricks
CSV

Let us explore Troubleshooting Common CSV Import Issues. Importing data from CSV files into SQL Server is a common task.

Read More
Three braided bundles sit beside their separate groups of woven strips.

SQL SERVER – Split Comma Separated Value String in a Column Using STRING_SPLIT

May 4, 2018
Pinal Dave
SQL Tips and Tricks
CSV, SQL Function, SQL Scripts, SQL Server, SQL Server 2016

To Split Comma Separated Value String inputs, I use STRING_SPLIT with CROSS APPLY. The example associates each class with its student.

Read More
Folded and partly opened corn-husk parcels keep rice and vegetables together inside their wrappers

BULK INSERT With FORMAT CSV and FIELDQUOTE for Quoted Files

February 18, 2015
Pinal Dave
SQL Tips and Tricks
CSV, ETL, File format

A comma inside a quoted name can break a CSV load without any error. Here is how FIELDQUOTE fixes it, and how to validate what arrives.

Read More
Result to CSV.

SQL SERVER – SSMS Trick – Generating CSV file using Management Studio

November 24, 2014
Pinal Dave
SQL Tips and Tricks
CSV, SQL Server Management Studio

Readers asked why use SQLCMD or BCP at all. Generating CSV file output is easy in SSMS: set Results to Text as comma delimited in Tools, Options.

Read More
Export dialog box.

MySQL – Export the Resultset to CSV file

August 2, 2014
Pinal Dave
SQL Tips and Tricks
CSV, MySQL

In MySQL you can export a resultset to CSV in more than one way. I show two methods: the Export option in Workbench and the INTO OUTFILE command.

Read More
A channel zester preserves one curled orange ribbon beside a heap of fine zest

Exporting CSV Files Without Losing Leading Zeros or Dates

December 11, 2013
Pinal Dave
SQL Tips and Tricks
CSV, Excel, SQL DateTime, Unicode

A postal code like 00501 turns into 501 in a spreadsheet. See where the zero is lost, how to build a correct CSV line, and why quotes alone do not help.

Read More
1 2 3 4 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com