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: on three barn shelves stand jars of honey from one harvest

GROUPING SETS: Choose Nonhierarchical Subtotals Explicitly

December 30, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

GROUPING SETS lets me choose independent subtotal combinations instead of assuming one hierarchy. I list the groups the report needs explicitly. That can exclude detail rows while retaining summaries across different dimensions.

Read More
SQL SERVER - TRUNCATE Can't be Rolled Back Using Log Files After Transaction Session Is Closed

SQL SERVER – TRUNCATE Can’t be Rolled Back Using Log Files After Transaction Session Is Closed

December 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Can TRUNCATE be rolled back? Inside an open transaction yes, but once the session is closed TRUNCATE can’t be rolled back using log files, while DELETE can.

Read More
Gouache painting: a tall glass honey jar stands filled nearly to its original line

EXP and LOG: Read Approximate Inverse Calculations

December 24, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

EXP and LOG can undo each other mathematically, but their SQL float calculations remain approximate. Keep a deliberate display scale and test only the permitted logarithm domain.

Read More
SQL SERVER - 2008 - New DataTypes DATE and TIME

SQL SERVER – 2008 – New DataTypes DATE and TIME

December 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts

SQL Server 2008 adds separate DATE and TIME datatypes, something DBAs wanted for years. I compare them with the SQL Server 2005 way of using DATETIME.

Read More
SQL SERVER - Difference Between Index Rebuild and Index Reorganize Explained with T-SQL Script

SQL SERVER – Difference Between Index Rebuild and Index Reorganize Explained with T-SQL Script

December 22, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

Index Rebuild drops and recreates the index, while Index Reorganize reorders the leaf nodes. Rebuild above 40% fragmentation, reorganize between 10% and 40%.

Read More
Indexes tab in SQL Server object explorer.

SQL SERVER – Enabling Clustered and Non-Clustered Indexes – Interesting Fact

December 21, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

When enabling clustered and non-clustered indexes, order matters: enabling the clustered index does not enable the others, but rebuilding all indexes does.

Read More
SQL SERVER - DISTINCT Keyword Usage and Common Discussion

SQL SERVER – DISTINCT Keyword Usage and Common Discussion

December 20, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Can you apply the DISTINCT keyword to only one column in a SELECT? No, it always applies to all the columns. I explain why and get the same result with GROUP BY.

Read More
Previous 1 … 325 326 327 328 329 330 331 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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