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 - Find Unused Indexes of Current Database

SQL SERVER – 2005 – Find Unused Indexes of Current Database

February 11, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

A simple but accurate SQL Server 2005 script to find unused indexes in the current database, since unused indexes slow down INSERT and UPDATE statements.

Read More
Gouache painting: two identical wall rails each carry the same five horseshoes graded from small to large, plus two bare vermilion hooks

NULL Sort Order: Put Missing Values Where Readers Expect

February 8, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

NULL sort order uses a CASE bucket to put missing values last. Keep a stable tie breaker and preserve the original score.

Read More
A paper ribbon of comma separated values feeding into a machine and coming out as a tidy table.

SQL SERVER – Import CSV File Into SQL Server Using Bulk Insert – Load Comma Delimited File Into SQL Server

February 6, 2008
Pinal Dave
SQL Tips and Tricks
CSV, SQL Scripts, SQL Utility

How to import CSV file data into SQL Server with BULK INSERT: create a table, point to the comma delimited file and load every row in a few quick steps.

Read More
SQL SERVER - Simple Example of WHILE Loop with BREAK and CONTINUE

SQL SERVER – Simple Example of WHILE Loop with BREAK and CONTINUE

February 4, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts

A very simple example of WHILE Loop with BREAK and CONTINUE, plus a Books Online sample that uses a SELECT query in the WHILE condition.

Read More
SQL SERVER - Find All The User Defined Functions (UDF) in a Database

SQL SERVER – Find All The User Defined Functions (UDF) in a Database

February 2, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

A very simple script that lists all the User Defined Functions in a database, with schema name and type, by reading sys.objects in SQL Server.

Read More
Two wooden meringue boards, each with four meringues and two empty wells on opposite ends.

binary Conversion: Strings and Numbers Pad on Different Sides

January 31, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

binary Conversion pads and truncates on different sides depending on the source type. I compare one integer with one string at two target widths. The resulting byte sequences show why width alone is not the complete rule.

Read More
Three upright carved wooden forms stand in a shallow wooden tray beside a red cloth and tool case.

REPLICATE: Zero Copies and Negative Counts Differ

January 27, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

REPLICATE treats zero copies differently from a negative count. I keep the source and requested count beside the result. Byte lengths and NULL flags reveal several blank-looking outcomes.

Read More
Previous 1 … 322 323 324 325 326 327 328 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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