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
Escaping a single quote in SQL Server: 'Villeneuve-d''Ascq' with the doubled quote in red

SQL SERVER – How to Escape Single Quotes – Fix: Error: 105 Unclosed quotation mark after the character string

February 17, 2008
Pinal Dave
SQL Interview Questions and Answers
SQL Error Messages, SQL Scripts, SQL Server, SQL String

Jr. Developer asked me other day how to escape single quote?
User can escape single quote using two single quotes (NOT double quote).

Read More
SQL SERVER - Msg: 2593 : There are ROWCOUNT rows in PAGECOUNT pages for object 'OBJECT'.

SQL SERVER – Msg: 2593 : There are ROWCOUNT rows in PAGECOUNT pages for object ‘OBJECT’.

February 16, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server DBCC

DBCC shows Msg 2593: There are ROWCOUNT rows in PAGECOUNT pages for object. It is harmless and for information only. Here is what it means.

Read More
Gouache painting: on a calm river, three rows of flat stepping stones cross from the near bank to the same vermilion post on the far bank

LOG With a Base: Make the Calculation Explicit

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

LOG with a base makes logarithm meaning explicit. Compare base two, base ten and the natural default using typed, positive inputs.

Read More
Performance counter dialog.

SQL SERVER – Introduction to Performance Monitor – How to Use Perfmon

February 14, 2008
Pinal Dave
SQL Performance
SQL Utility

How to use Perfmon: three ways to start Performance Monitor, how to add counters, and how to log them over time so you can compare later.

Read More
SQL SERVER - Introduction to Three Important Performance Counters

SQL SERVER – Introduction to Three Important Performance Counters

February 13, 2008
Pinal Dave
SQL Performance
SQL Utility

Three basic but very important Performance Counters: % Processor Time, Avg. Disk Queue Length and Disk Read and Write Bytes/sec, and what their values mean.

Read More
SQL Server Management Studio Query Window.

SQL SERVER – Get Current Database Name

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

Need the current database name in a script? SELECT DB_NAME() returns the name of the database you are running the query in. It is a one line answer.

Read More
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
Four small pipettes rest in white cups while a hand drips amber liquid from a fifth pipette into a glass blending bottle.

Weighted Scores: Ranking Products by Several Columns at Once

February 10, 2008
Pinal Dave
SQL Tips and Tricks
Mathematics, Ranking Functions, SQL Order By, Temp Table

Adding rating to units sold ranks by whichever column is biggest. Scale first, weigh second, and keep the weights in a table anyone can read.

Read More
An open kitchen drawer with wooden compartments, one overflowing with tangled string while others hold cutlery.

Reading Memory Clerks to See Where Memory Goes

February 9, 2008
Pinal Dave
SQL Performance
SQL Cache, SQL DMV, SQL Memory, SQL Server

Memory clerks show how SQL Server allocates memory among engine components; learn to read the DMV, spot unusual growth, and investigate safely.

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
Previous 1 … 542 543 544 545 546 547 548 … 592 Next
  • Books
  • Testimonials
  • Privacy Policy

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