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 seismograph drum with a calm ink line and one sharp spike, a fingertip pausing beside the spike

Reading the Error Log With T-SQL

December 1, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Error Messages, SQL Log, SQL Scripts

Reading the error log with T-SQL helps you search current and archived SQL Server messages, then set a useful log cycle schedule.

Read More
SQL SERVER - Size of Index Table for Each Index - Solution

SQL SERVER – Size of Index Table for Each Index – Solution

November 30, 2009
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts

Two reader solutions to my puzzle: queries that show the size of the index table for each index, accurate in nearly all of my tests.

Read More
Gouache painting: at a grain stall a small tin cup overflows with tiny red lentils, spilling a heap onto the counter

DATEDIFF_BIG: Count Long Intervals Without int Overflow

November 29, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

DATEDIFF_BIG returns bigint boundary counts. Compare a long seconds interval, reversed dates and a tiny boundary crossing without overflowing int.

Read More
Gloved hands lifting a honeycomb frame from a stacked wooden beehive in a meadow, smoke drifting nearby

What Is Installed? Finding Every SQL Server Component

November 28, 2009
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Server, SQL Server Installation, SQL Server Services

Finding every SQL Server component starts with the Setup discovery report, then checks services, engine versions, and separate client tools.

Read More
SQL SERVER - Comma Separated Values (CSV) from Table Column

SQL SERVER – Comma Separated Values (CSV) from Table Column

November 25, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, CSV, SQL Scripts, SQL Server, SQL XML

The script I use most often to build Comma Separated Values (CSV) from a table column with FOR XML PATH. I think XML is the best option for code and speed.

Read More
SQL Server TOP 100 PERCENT and ORDER BY Query Comparison.

SQL SERVER – Interesting Observation – TOP 100 PERCENT and ORDER BY

November 24, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL View

ORDER BY in a view raises Msg 1033 unless TOP is used, so many developers add TOP 100 PERCENT. An interesting observation on what that really does.

Read More
SQL SERVER - A Common Design Problem - Should the Primary Key Always be a Clustered Index

SQL SERVER – A Common Design Problem – Should the Primary Key Always be a Clustered Index

November 23, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys

Should the Primary Key always be a clustered index? A design discussion about SSN numbers stored as strings and when a separate clustered index makes sense.

Read More
Previous 1 … 449 450 451 452 453 454 455 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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