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
SQL SERVER - 2005 Replace TEXT with VARCHAR(MAX) - Stop using TEXT, NTEXT, IMAGE Data Types

SQL SERVER – 2005 Replace TEXT with VARCHAR(MAX) – Stop using TEXT, NTEXT, IMAGE Data Types

May 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL String

Is VARCHAR(MAX) big enough to hold TEXT? Yes. TEXT, NTEXT and IMAGE will be deprecated, so replace TEXT with VARCHAR(MAX) and use the new MAX data types.

Read More
SQL SERVER - 2005 Find Table without Clustered Index - Find Table with no Primary Key

SQL SERVER – 2005 Find Table without Clustered Index – Find Table with no Primary Key

May 26, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

A query on sys.indexes to find every table without clustered index in a database, why heaps can slow you down, and how to pick a clustered key.

Read More
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 - Disadvantages (Problems) of Triggers

SQL SERVER – Disadvantages (Problems) of Triggers

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

Triggers or stored procedures? The disadvantages (problems) of triggers I shared with my team: hard to see, hard to debug, and they can slow things down.

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
Gouache painting: on a sunny potting bench a blue glazed flower pot sits in its blue saucer and a sage pot in its sage saucer, both pairs matched and set side by side

Composite Keys: Match Complete Pairs Instead of Separate Lists

May 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Joins, SQL Scripts, SQL Server

Composite keys need a complete pair match when the allowed values are defined together. I don’t split the components into independent lists. Doing so can admit combinations that were never allowed.

Read More
SQL SERVER - 2005 Explanation Left Semi Join Showplan Operator and Other Operator

SQL SERVER – 2005 Explanation Left Semi Join Showplan Operator and Other Operator

May 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Joins

What the Left Semi Join showplan operator means, along with Left Anti Semi Join, Right Anti Semi Join and other joins you see in a text execution plan.

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
Person typing on a computer keyboard.

SQLAuthority News – T-Shirts in Action

May 22, 2007
Pinal Dave
SQLAuthority News
SQL T-Shirt

Here are the SQLAuthority T-shirts in action. Thank you for the great response; they ran out fast, so leave your request and I will see what I can do.

Read More
Previous 1 … 571 572 573 574 575 576 577 … 589 Next
  • Books
  • Testimonials
  • Privacy Policy

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