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 - Handling XML Documents - Notes from the Field #125

SQL SERVER – Handling XML Documents – Notes from the Field #125

May 19, 2016
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Server, SQL Server Security, SQL XML

Stuart Ainsworth shares a client case of importing XML documents into a staging table and what he learned about using XQuery methods in SQL Server.

Read More
SQL SERVER - Group by Rows and Columns using XML PATH - Efficient Concating Trick

SQL SERVER – Group by Rows and Columns using XML PATH – Efficient Concating Trick

April 5, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL String, SQL XML

A reader wanted students and courses grouped by course and instructor in a single row. Here is a simple concatenation trick with XML PATH that does it.

Read More
Hands sewing cloth bunting whose cord has run out, two red flags side by side.

STRING_AGG Limits: The 8,000 Byte Error, Ordering and Duplicates

December 1, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL String, SQL XML

Fix STRING_AGG 8,000-byte limits, enforce ordering, remove duplicates before aggregation, and compare its timing with XML.

Read More
SQL SERVER - Grouping by Multiple Columns to Single Column as A String

SQL SERVER – Grouping by Multiple Columns to Single Column as A String

September 14, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL XML

How do you group data from multiple columns into one comma separated string per row, grouped by another column? Here is a sample dataset and the query.

Read More
Torn continuous printer paper spilling off a bench under a red desk lamp

SQL SERVER – Methods for Accessing SQL Server XML Datatype – Quiz – Puzzle – 20 of 31

January 21, 2012
Pinal Dave
SQL Puzzle
SQL Server, SQL XML

In this blog post, we will learn about methods for accessing SQL Server XML DataType. Here is an article which discusses the Author’s Perspective.

Read More
Save As dialog box.

SQL SERVER – View XML Query Plans in SSMS as Graphical Execution Plan

July 3, 2010
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Scripts, SQL Server Management Studio, SQL XML

Want to share a graphical execution plan? Save it as a .sqlplan file and send it. Anyone can open it in SSMS without the tables or indexes behind it.

Read More
SQLAuthority News - Guest Post - SELECT * FROM XML - Jacob Sebastian

SQLAuthority News – Guest Post – SELECT * FROM XML – Jacob Sebastian

June 23, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL XML

Getting NULL when reading a value from XML? Most of the time the XPath expression is wrong. A guest post by Jacob Sebastian on writing it correctly.

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

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