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
Solder sucker beside a recovered original bead and a separate new lump

Rethrowing Errors With THROW and Keeping the Original Number

March 6, 2013
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server

A bare THROW passes an error on untouched. A new THROW or a copied RAISERROR message does not. See the proof, plus one semicolon trap.

Read More
Sql server query tool window.

SQL SERVER – Exporting Query Results to CSV using SQLCMD

March 5, 2013
Pinal Dave
SQL Tips and Tricks
sqlcmd

A reader on Facebook asked how to export query results to CSV using SQLCMD. It is a very simple command, and I show it with an AdventureWorks2012 example.

Read More
SQL SERVER - SSMS Does NOT Print NULL Values

SQL SERVER – SSMS Does NOT Print NULL Values

March 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Scripts, SQL Server, SQL Server Management Studio

Here is a very interesting question asked on the blog by Karthik. I really liked the question and I would like to discuss this here about SSMS doe snot Print NULL values. 

Read More
A wooden cartwheel hub lying flat on a workshop bench with five spokes radiating out from it.

What Is a Star Schema?

March 3, 2013
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, Database, SQL Server

A star schema is one fact table surrounded by dimension tables. What facts and dimensions hold, why grain is the decision you cannot undo, why the data repeats on purpose, and a worked example in AdventureWorksDW.

Read More
Small streams joining larger rivers that merge into one wide river, a red bridge across it.

Subtotals and Grand Totals With ROLLUP and GROUPING SETS

March 2, 2013
Pinal Dave
SQL Tips and Tricks
SQL Group By, SQL Reports, SQL Server, SQL Union clause

Build region, product, and grand totals with ROLLUP, CUBE, and GROUPING SETS, then label subtotal rows and compare plans.

Read More
SQL SERVER - Beginning SQL 2012 - Basics of CONVERT and FORMAT Function - Abstract from Joes 2 Pros Volume 5

SQL SERVER – Beginning SQL 2012 – Shred XML with the nodes() Method – Abstract from Joes 2 Pros Volume 5

March 1, 2013
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

An abstract from Joes 2 Pros Volume 5 that shows how to shred XML into nodes with an XPath and the nodes() method, without OPENXML or numbered handles.

Read More
SQL SERVER - Beginning SQL 2012 - Basics of CONVERT FORMAT Function

SQL SERVER – Beginning SQL 2012 – Basics of CONVERT FORMAT Function

February 28, 2013
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Function, SQL Scripts, SQL Server

Basics of the CONVERT FORMAT Function in SQL 2012: compare FORMAT with the older CONVERT tricks and grab just the part of a date you need for reports.

Read More
Previous 1 … 492 493 494 495 496 497 498 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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