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
A blue glass vessel under inspection beside a magnifying lens and shelves of accumulated finished vessels.

Wait Statistics: Read the Snapshot Before Naming the Bottleneck

September 28, 2010
Pinal Dave
SQL Performance
SQL Monitoring, SQL Performance, SQL Scripts, SQL Server

Wait statistics provide a starting point for investigation. Separate cumulative completed waits, background activity, signal time and currently waiting requests before treating the largest total as the present bottleneck.

Read More
SQL Server 'Limitations' button.

SQL SERVER – Keywords View Definition Must Not Contain for Indexed View – Limitation of the View 10

September 27, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server, SQL View

A quick reference of the keywords a view definition must not contain if you want an indexed view in SQL Server, part 10 of my views series.

Read More
A drawing compass on cream paper, its pencil arc just touching the nearest of several scattered pebbles.

Finding the Nearest Location With a Spatial Index

September 19, 2010
Pinal Dave
SQL Performance
Execution Plan, Spatial Database, SQL Index, SQL Server

A nearest location query in SQL Server needs TOP, STDistance in WHERE and ORDER BY, matching SRIDs, and a checked spatial plan.

Read More
A whole watermelon beside one cut red slice on a cloth, a kitchen knife in front

Percent of Total With SUM() OVER() in One Query

September 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

Calculate percent of total with SUM() OVER(), group and running shares, safe numeric division, and checks for zero totals.

Read More
Gouache painting: two shallow trays of turned wooden acorns, each holding both large and small acorns

REPLACE With COLLATE: Choose Case Matching Explicitly

September 17, 2010
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Function, SQL Server

REPLACE with COLLATE controls which substrings match. Preview case-dependent results before applying a text replacement policy.

Read More
SQL SERVER – SELECT * and Adding Column Issue in View – Limitation of the View 4

SQL SERVER – SELECT * and Adding Column Issue in View – Limitation of the View 4

September 15, 2010
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL View

Why does SELECT * miss a new column? The adding column issue in view stays until you refresh it with sp_refreshview. Limitation of the view number 4.

Read More
A houseboat leaving its canal mooring with potted herbs, a bicycle and its red front door all aboard.

Contained Database Users: Logins That Move With the Database

September 9, 2010
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Login, SQL Password, SQL Server, SQL Server Security

Use contained database users to move authentication with a database, inspect prerequisites, test connections, and review access ownership.

Read More
Previous 1 … 332 333 334 335 336 337 338 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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