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
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
Three pale ceramic bowls, two filled with blue and terracotta stones and one empty, beside two loose stones.

XQuery Comparisons: General Equality Is Not Singleton Equality

November 22, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

XQuery Comparisons use different rules for general sequence operators and singleton value operators. I make equality and inequality visible side by side. A general unequal-pair result is not always the inverse of an equal-pair result.

Read More
Data Driven

SQL – Biggest Concerns in a Data Driven World

November 11, 2013
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Training

The snooping debate made users distrust how their data is used. Here are the biggest concerns for companies taking a data driven approach to business.

Read More
Braided garlic hanging under a shed roof beside garden rows that are still growing

Real-Time Operational Analytics With a Filtered Columnstore Index

November 6, 2013
Pinal Dave
SQL Performance
ColumnStore Index, SQL Index, SQL Performance, SQL Server

Build real-time operational analytics with a filtered columnstore index, inspect batch-mode plans and rowgroups, and measure write costs.

Read More
Allotment beds seen from above, one pumpkin vine with red pumpkins spreading across into the next bed

Measuring Space Used by Tables per Filegroup in T-SQL

October 31, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Data Storage, SQL Server, SQL System Table, Table Partitioning

Measure tables per filegroup from allocation metadata, include LOB and overflow pages, and separate partition placement from growth history.

Read More
Birds on three telegraph wires at dusk, each wire mostly one kind of bird with a few others mixed in.

Finding the Most Frequent Value per Group in T-SQL

October 28, 2013
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Group By, SQL Scripts, SQL Server

Find the most frequent value in each group, choose a tie policy, and compare categorical modes with averages and numeric percentiles.

Read More
A row of garden chairs with red cushions, the chairs without cushions stacked by the shed.

A WHERE Filter That Turns Your LEFT JOIN Into an INNER JOIN

October 26, 2013
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server

Fix a LEFT JOIN whose right-table WHERE filter removes unmatched rows, inspect the inner-join plan, and search modules for candidates.

Read More
Previous 1 … 255 256 257 258 259 260 261 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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