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
Split Comma Separated Value String in a Column.

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

STRING_SPLIT arrived in SQL Server 2016 but is still underused. Here is how to split comma separated value string in a column into rows, quickly.

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
SQL SERVER - Export Data AS CSV from Database Using SQLCMD

SQL SERVER – Export Data AS CSV from Database Using SQLCMD

November 25, 2013
Pinal Dave
SQL Tips and Tricks
CSV, SQL Scripts, SQL Server

We often import CSV into SQL Server, but how do you export data as CSV with SQLCMD? Two simple commands, one with column headers and one without.

Read More
Hands passing a tied bakery box with a window across a doorstep, the layered cake inside still neat.

Sharing Query Results From SSMS: Copy With Headers, Grids and CSV

May 19, 2013
Pinal Dave
SQL Tips and Tricks
CSV, SQL Server, SQL Server Management Studio, sqlcmd

Share SSMS results with copy with headers, text and file output, deliberate CSV quoting, and command-line exports for larger sets.

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

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