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: 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
Hands releasing a carrier pigeon from a rooftop loft at dawn, with a distant empty loft waiting across the roofs

Setting Up Database Mail for Alerts

December 24, 2007
Pinal Dave
SQL Tips and Tricks
Database Mail, DBA, SQL Server Agent, SQL Server Configuration

Setting up Database Mail for alerts means creating an account and profile, testing delivery, linking Agent, and checking the queue when mail stops.

Read More
A soil sieve over a wheelbarrow, fine soil fallen through while stones and roots stay caught on the mesh.

Check Constraints That Enforce Business Rules

December 24, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Constraint and Keys, SQL NULL, SQL Server

Check constraints keep row rules inside SQL Server, but NULL behavior and trusted status determine how much protection they provide.

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
Gouache painting: at a harbor quay, stone steps run down into calm water, with the waterline as zero

CEILING and FLOOR: Negative Values Change the Direction

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

CEILING and FLOOR follow numeric order even below zero. This example compares both boundaries with truncation and explicitly defines its displayed decimal types.

Read More
A rope swing on an oak branch holding a heavy sack of sand, the rope taut, tested before anyone rides it.

Stress Testing a Query Before Release

December 19, 2007
Pinal Dave
SQL Performance
Parameter Sniffing, SQL Performance, SQL Server, SQL Wait Stats, Testing

Stress testing a query before release reveals concurrency and parameter risks; learn to design realistic SQL Server tests and compare useful metrics.

Read More
SQL SERVER - Get Information of Index of Tables and Indexed Columns

SQL SERVER – Get Information of Index of Tables and Indexed Columns

December 18, 2007
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts

sp_helpindex is a handy stored procedure that shows every index on a table, its description and the indexed columns. One line of T-SQL does it.

Read More
Previous 1 … 545 546 547 548 549 550 551 … 590 Next
  • Books
  • Testimonials
  • Privacy Policy

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