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 - FIX : Error : 3702 Cannot drop database because it is currently in use.

SQL SERVER – FIX : Error : 3702 Cannot drop database because it is currently in use.

December 7, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts

Error 3702 says you cannot drop database because it is in use. Switch to master, find other connections and drop it safely with this fix.

Read More
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
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
Previous 1 … 782 783 784 785 786 787 788 … 842 Next
  • Books
  • Testimonials
  • Privacy Policy

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