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
XML data in SQL Server.

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Preparing XML in Memory – Day 34 of 35

September 3, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

Before you can turn XML into a result set, SQL Server needs it in memory. Here is how preparing XML in memory works, with a customer order example.

Read More
SQL database query result visualization.

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Shredding XML – Day 33 of 35

September 2, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

After streaming table data into XML, we go the other way. Shredding XML means turning XML data back into rows and columns that you can query.

Read More
Rows of filled jam jars on a farmhouse table, one hand twisting on a lid, one jar at a time.

Scalar Functions and Performance

September 2, 2011
Pinal Dave
SQL Performance
Compatibility Level, Execution Plan, SQL Function, SQL Server, SQL Server 2019

Scalar functions can hide row-by-row work in SQL Server; learn when inlining helps, how to inspect eligibility, and when a set-based rewrite wins.

Read More
Several small plain brass locks beside one larger plain lock on a warm wooden tabletop.

What Lock Escalation Is and How to Stop It

September 1, 2011
Pinal Dave
SQL Performance
Best Practices, SQL Index, SQL Performance, SQL Server

Understand lock escalation, confirm it with evidence, and reduce its impact through smaller transactions, better access paths, and modern locking.

Read More
SQL Server XML Editor Query Window.

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Using Root With Auto XML Mode – Day 32 of 35

September 1, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

Beyond using root with Auto XML mode, the XML Path mode lets you show some data as attributes and some as elements. Here is how, with JProCo data.

Read More
SQL Server Management Studio Query Window.

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Using Root With Auto XML Mode – Day 31 of 35

August 31, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

Add a root element to the Auto XML mode so your XML stream is well-formed, and give the root node a meaningful name with the ROOT keyword.

Read More
XSINIL XML make nulls explicit.

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – What is XML Day 30 of 35

August 30, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

In What is XML Day 30, we use FOR XML RAW to output the Employee table as XML, then add ROOT to get a root node and well-formed XML.

Read More
Previous 1 … 574 575 576 577 578 579 580 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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