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 file icon.

SQL SERVER – Validate an XML Document in TSQL using XSD by Jacob Sebastian

December 2, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL XML

Jacob Sebastian shows how to validate an XML Document in T-SQL with XSD. An XML Schema Collection checks the structure and values of an XML column or variable.

Read More
A seismograph drum with a calm ink line and one sharp spike, a fingertip pausing beside the spike

Reading the Error Log With T-SQL

December 1, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Error Messages, SQL Log, SQL Scripts

Reading the error log with T-SQL helps you search current and archived SQL Server messages, then set a useful log cycle schedule.

Read More
SQL SERVER - Size of Index Table for Each Index - Solution

SQL SERVER – Size of Index Table for Each Index – Solution

November 30, 2009
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts

Two reader solutions to my puzzle: queries that show the size of the index table for each index, accurate in nearly all of my tests.

Read More
Gouache painting: at a grain stall a small tin cup overflows with tiny red lentils, spilling a heap onto the counter

DATEDIFF_BIG: Count Long Intervals Without int Overflow

November 29, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

DATEDIFF_BIG returns bigint boundary counts. Compare a long seconds interval, reversed dates and a tiny boundary crossing without overflowing int.

Read More
SQL SERVER - Comma Separated Values (CSV) from Table Column

SQL SERVER – Comma Separated Values (CSV) from Table Column

November 25, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, CSV, SQL Scripts, SQL Server, SQL XML

The script I use most often to build Comma Separated Values (CSV) from a table column with FOR XML PATH. I think XML is the best option for code and speed.

Read More
SQL Server TOP 100 PERCENT and ORDER BY Query Comparison.

SQL SERVER – Interesting Observation – TOP 100 PERCENT and ORDER BY

November 24, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL View

ORDER BY in a view raises Msg 1033 unless TOP is used, so many developers add TOP 100 PERCENT. An interesting observation on what that really does.

Read More
Error dialog showing an error in an SQL query.

SQL SERVER – Understanding Table Hints with Examples

November 19, 2009
Pinal Dave
SQL Performance
SQL Joins, SQL Scripts

What are hints in SQL Server and when should you use them? Understanding table hints with examples, plus a word of caution about overriding the optimizer.

Read More
Previous 1 … 272 273 274 275 276 277 278 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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