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 - Finding Count of Logical CPU using T-SQL Script - Identify Virtual Processors

SQL SERVER – Finding Count of Logical CPU using T-SQL Script – Identify Virtual Processors

February 4, 2012
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server

A friend needed to count Virtual Processors available to SQL Server 2000. Scripts for 2000 with xp_msver, and for 2005 to 2012 with sys.dm_os_sys_info.

Read More
Gouache painting: a hall so full that spare chairs line the back wall, every chair holding a notebook and a cloth bag, one bag vermilion

SQL Saturday #116: The First SQL Saturday in India

February 3, 2012
Pinal Dave
SQLAuthority News
Conferences, SQL PASS, SQL Saturday

SQL Saturday #116 was the first SQL Saturday in India, and it was a huge success. We filled every seat, hosted two technical tracks with six speakers and ended with a book signing. Here is my recap of the day, with photographs.

Read More
Gouache painting of a rocking chair with a vermilion shawl and a book on its seat, beside a small film projector casting warm light on a wall.

SQL Server Questions and Answers: The Movie My Grandma Asked For

February 2, 2012
Pinal Dave
SQL Interview Questions and Answers
Life Lessons, Pluralsight, SQL Book, SQL Training

SQL Server Questions and Answers began as a book I carried to my grandma for blessings. One question from Grandma, “when will this book become a movie?”, turned into a video course eighty days later.

Read More
A winding garden path with two small houses along it, the nearer older house with a red front door.

Slowly Changing Dimension Quiz: Type 1 or Type 2?

February 1, 2012
Pinal Dave
SQL Puzzle
Business Intelligence, Data Warehousing, ETL

This Slowly Changing Dimension Quiz asks which type to use when a customer moves from Denver to Austin and sales before the move must stay under Denver. The answer is Type 2. A tested script runs Type 1 and Type 2 side by side, checks the move date and shows both reports.

Read More
A long glass greenhouse divided into sections, with only its red-framed middle door lit from inside.

Table Partitioning Quiz: When Does It Make a Query Faster?

January 31, 2012
Pinal Dave
SQL Puzzle
Execution Plan, SQL Index, SQL Performance, Table Partitioning

This Table Partitioning Quiz asks whether a query for last month runs faster once a sales table is partitioned by month. The answer is only when the filter lets SQL Server skip partitions. A tested script shows the partition count, the reads, and a partition SWITCH.

Read More
A row of closed cloth-bound journals on a shelf, one pale journal leaning forward with a red ribbon bookmark.

Query Store Quiz: Where Is Last Week’s Slow Query?

January 30, 2012
Pinal Dave
SQL Puzzle
Execution Plan, Query Store, SQL Performance, SQL Server 2022

This Query Store Quiz starts with a slow query from last week and a plan cache that restarted empty. The answer is Query Store, which keeps plans and run times inside the database. A tested T-SQL script finds the query, its plan and its duration.

Read More
A large open moving box on a wooden floor, only partly filled with folded linens, a red roll of tape beside it.

Reclaiming Space Quiz: Does Deleting Rows Shrink the File?

January 29, 2012
Pinal Dave
SQL Puzzle
Shrinking Database, SQL Data Storage, SQL Index, SQL Performance

This Reclaiming Space Quiz asks what happens to the data file after you delete half the rows of a big table. The file keeps its size, and the space stays free inside it. A tested script shows the numbers, then what a shrink costs.

Read More
Previous 1 … 549 550 551 552 553 554 555 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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