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 query with WHERE clause and JOIN clause.

SQL SERVER – Pending IO request in SQL Server – DMV

March 13, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV

How many pending IO requests are there for each MDF and LDF file? My handy script joins sys.dm_io_pending_io_requests with virtual file stats.

Read More
A small camping stove with one simmering pot on a picnic table in a quiet clearing at dusk

LocalDB: SQL Server on a Developer’s Laptop

March 12, 2011
Pinal Dave
SQL Tips and Tricks
Developer, SQL Server, SQL Server Express, sqlcmd

LocalDB runs SQL Server Express engine features in a developer-friendly local process; learn how to start, connect, and recognize its limits.

Read More
A table showing latch class statistics.

SQL SERVER – Finding Latch Statistics

March 11, 2011
Pinal Dave
SQL Tips and Tricks

Which latches are waiting and for how long? The DMV sys.dm_os_latch_stats lets you find latch statistics with one simple query ordered by wait time.

Read More
Gouache painting: a triangular sheet of flatbread dough lies on a floured board with one hazelnut at each of its three corners

geometry STNumPoints: Closing Coordinates Count Again

March 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STNumPoints counts coordinates in the spatial description. A square ring contains its closing coordinate as well as its four distinct corners.

Read More
Difference between DISTINCT and ALL in SQL Server.

SQL SERVER – Difference between COUNT(DISTINCT) vs COUNT(ALL)

March 8, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts

What is the difference between COUNT(DISTINCT) and COUNT(ALL)? A student asked me at a college session, and one quick script made the answer clear.

Read More
Gouache painting: on a music room shelf, one tambourine hangs beside a stacked trio of tambourines

geometry STGeometryType: Type Names Say More Than Dimension

March 7, 2011
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STGeometryType identifies the represented shape type, which carries more information than its dimension. I compare single and multiple shapes in one small query. Equal dimensions do not mean that their structures are interchangeable.

Read More
Sqlcmd.exe window.

SQL SERVER – Running Multiple Batch Files Together in Parallel

March 6, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility

I needed SQL code running in parallel for a demo, so I used sqlcmd and start cmd.exe to run multiple batch files together. Can PowerShell do it better?

Read More
Previous 1 … 406 407 408 409 410 411 412 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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