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 - 2005 - Dynamic Management Views (DMV) and Dynamic Management Functions (DMF)

SQL SERVER – 2005 – Dynamic Management Views (DMV) and Dynamic Management Functions (DMF)

December 6, 2007
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Function

Dynamic Management Views and Management Functions show what SQL Server is doing right now. The two scopes, the main categories and where to start.

Read More
SQL SERVER - UDF - Remove Duplicate Chars From String

SQL SERVER – UDF – Remove Duplicate Chars From String

December 5, 2007
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Function, SQL Scripts, SQL String

A reader, Virendra Chauhan, shared a UDF that removes duplicate chars from one large string. Here is his REMOVE_DUPLICATE_INSTR function and how to call it.

Read More
Gouache painting: seen from above, two identical round paddock fences stand side by side on a green hill

ReorientObject: Swap a Geographic Ring’s Interior

December 4, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

ReorientObject swaps a geography polygon’s interior and exterior. Compare inside and outside witnesses, then reorient twice to restore membership.

Read More
Two gravel approaches converge around a planted garden bed and continue as one path toward a blue courtyard door

OR in a JOIN: Preserve Matching Pairs When Rewriting

December 3, 2007
Pinal Dave
SQL Tips and Tricks
Developer, SQL Scripts, SQL Server

OR in a JOIN matches either key while returning each pair once. Compare NULL cases and pair counts before rewriting. Measure the actual plan only after proving the results.

Read More
A ring cake with white icing and one cherry on top, on a white plate beside a knife.

STPointOnSurface: Choose a Point Inside a Polygon

December 1, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

STPointOnSurface returns an interior point. Check a polygon with a hole, a simple polygon and an empty geometry without assuming exact coordinates.

Read More
A small wooden organizer separates blank index cards into several tidy compartments.

Finding the Right System View for the Question You Have

November 30, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Choose SQL Server system views by the question they answer, distinguish catalog metadata from runtime counters, and understand reset boundaries.

Read More
Two wicker baskets hold cream and blue twine balls beside an empty basket and a small shared tray.

AND and OR: Parentheses Make Predicate Precedence Clear

November 29, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Server

AND and OR predicates need explicit grouping. Use a complete small truth table to expose which alternatives share a common requirement.

Read More
Previous 1 … 525 526 527 528 529 530 531 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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