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 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 - 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
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
A gouache inspection shed displays differently shaped vessels and their current fill levels beside a small lens.

SQL SERVER – T-SQL Script to Find Details About TempDB Information

December 17, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL TempDB

TempDB Information starts with the files and their actual locations. I inspect every data and log file before proposing changes.

Read More
SQL SERVER - Solution - Log File Very Large - Log Full

SQL SERVER – Solution – Log File Very Large – Log Full

December 16, 2007
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, Transaction Log

Is your log file too big, or is the log full? Fix it in three steps: back up the log file, truncate it, then shrink it. I link my two detailed posts too.

Read More
Previous 1 … 523 524 525 526 527 528 529 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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