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 - Simple Example of Creating XML File Using T-SQL

SQL SERVER – Simple Example of Creating XML File Using T-SQL

February 12, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL XML

I always want to learn SQL Server and XML file. Let us go over a very simple example, today about how to create XML using SQL Server.

Read More
A cottage window frosted on the lower half, clear above, a red curtain tied back

Sharing an Execution Plan Without Exposing Sensitive Data

October 23, 2008
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Server, SQL Server Security, SQL XML

Protect sensitive data when sharing an execution plan by inspecting XML values, redacting names and literals, and checking the file again.

Read More
A compact brick of pressed tea beside a loose heap of the same leaves, a small red tea knife resting on it.

XML Compression in SQL Server 2022

September 22, 2008
Pinal Dave
SQL Tips and Tricks
Compression, SQL Data Storage, SQL Server, SQL Server 2022, SQL XML

Use XML compression in SQL Server 2022 to reduce XML storage, inspect partition settings, and compare CPU costs on your own workload.

Read More
Colored ceramic beads in a pale shallow tray beside an empty tray and a separate blue bead.

XQuery distinct-values: Deduplicate Atomic Values, Not Nodes

May 9, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

XQuery distinct-values removes repeated atomic values rather than selecting representative source nodes. I rebuild a small sorted XML result from repeated text. The example also keeps an empty document in view.

Read More
Gouache painting: at a market stall a wicker basket holds one whole peach, the largest, left behind

XQuery FLWOR: Filter and Rebuild a Small XML Result

July 25, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

XQuery FLWOR can iterate over source items and construct a different XML result. I use it to filter three products and reorder the survivors. The new elements deliberately differ from the source elements.

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

SQL SERVER – Fix : Error : Msg 9514 Xml data type is not supported in distributed queries. Remote object ‘OPENROWSET’ has xml column(s)

June 9, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL XML

Msg 9514 means a distributed query touched an XML column. Why the type cannot cross a linked server, and four ways to get the data across anyway.

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

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