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
Fill Factor.

SQL SERVER – Change Default Fill Factor For Index

May 25, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL Server Configuration

The Default Fill Factor in SQL Server is 0. Change it with sp_configure to leave free space on index pages and reduce page splits. I like mine at 90.

Read More
SQL SERVER - Stored Procedure to display code (text) of Stored Procedure, Trigger, View or Object

SQL SERVER – Stored Procedure to display code (text) of Stored Procedure, Trigger, View or Object

May 25, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure, SQL Trigger, SQL View

Need to display code of a stored procedure, trigger, view or function? The system stored procedure sp_helptext prints the text of any unencrypted object.

Read More
SQL SERVER - 2005 Retrieve Configuration of Server

SQL SERVER – 2005 Retrieve Configuration of Server

May 24, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts

To retrieve the full configuration of server options in SQL Server 2005, turn on show advanced options and run sp_configure. Change any option the same way.

Read More
A striped hand-knitted scarf on a chair, no color repeated, with two unused balls of yarn in a basket on the seat.

A Quote of the Day From a Table, With No Repeats Until All Are Used

May 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Random, SQL Scripts, SQL Server, SQL Transactions

Build a quote of the day table that rotates without repeats, handles concurrent requests, and supports a stable date-based selection.

Read More
SQL SERVER - 2005 Comparison EXCEPT operator vs. NOT IN

SQL SERVER – 2005 Comparison EXCEPT operator vs. NOT IN

May 22, 2007
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Operator, SQL Scripts, SQL Server

The EXCEPT operator returns distinct rows from the left query with no match on the right, just like NOT IN. Both give the same plan, but EXCEPT reads simpler.

Read More
Three identical glass jars on a wooden shelf: one filled with rice, one holding a single grain, and one completely empty with its lid off.

What Is NULL in SQL Server? The Value That Isn’t a Value

May 21, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

NULL in SQL Server is not zero and not an empty string. It means the value is unknown, and that changes every comparison you write. Why equals never matches, the NOT IN trap that returns nothing, and where NULL is allowed to live.

Read More
SQL SERVER - Script/Function to Find Last Day of Month

SQL SERVER – Script/Function to Find Last Day of Month

May 20, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Utility

A one line DATEADD query to find the last day of month for any date. It handles leap years: February 2008 gives the 29th and 2007 the 28th.

Read More
Previous 1 … 319 320 321 322 323 324 325 … 336 Next
  • Books
  • Testimonials
  • Privacy Policy

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