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
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
SQL SERVER - Q and A with Database Administrators

SQL SERVER – Q and A with Database Administrators

December 2, 2007
Pinal Dave
SQL Interview Questions and Answers
Database, DBA, Software Development, SQLAuthority Author Visit

My Q and A with Database Administrators from interviews in India: the technical questions we discussed and my opinion on each, with a link to the full article.

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
SQL SERVER - Correct Syntax for Stored Procedure SP

SQL SERVER – Correct Syntax for Stored Procedure SP

November 28, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure

What is the correct syntax for stored procedure code? Anything between BEGIN and END is part of the procedure, and anything after GO is not, as my examples show.

Read More
Previous 1 … 784 785 786 787 788 789 790 … 843 Next
  • Books
  • Testimonials
  • Privacy Policy

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