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
Config values that needs restart.

SQL SERVER – Which Settings Change in sp_configure Needs Restart to Take Effect?

January 1, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server 2017, SQL Server Configuration, Starting SQL

Which settings changed in sp_configure need a restart to take effect? You do not need to remember them, because a catalog view added in SQL Server 2008 tells you.

Read More
Caption SQL Keyword Get-Instance.

SQL SERVER – Installation Failure – Specified Instance Via Transform is Already Installed. MSINEWINSTANCE Requires a New Instance that is not Installed

December 31, 2018
Pinal Dave
SQL Tips and Tricks
SQL Documentation, SQL Scripts, SQL Server, SQL Server Installation

A client’s second clustered SQL Server instance failed to install: Specified instance via transform is already installed. Here is what I found and the fix.

Read More
Cooking spoons hang in ascending bowl sizes regardless of their handle colors

How to Sort a Varchar Column Storing Integers with Order By? – Interview Question of the Week #206

December 30, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Datatype, SQL Order By, SQL Scripts, SQL Server, SQL String

How do you sort a Varchar column storing integers with Order By when you cannot change the datatype? Here are two simple solutions I shared with a developer.

Read More
50 Length shown in Varchar.

SQL SERVER – Measuring the Length of VARCHAR and NVARCHAR Columns with COL_LENGTH

December 29, 2018
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Datatype, SQL Function, SQL Scripts, SQL Server

Does an NVARCHAR column take twice the space of VARCHAR? Yes. I measure the length of VARCHAR and NVARCHAR columns with COL_LENGTH to show it.

Read More
Gouache painting of a board of cream and slate blue buttons under a magnifying glass with a vermilion handle

Count a Particular Value Across All Columns in SQL Server

December 28, 2018
Pinal Dave
SQL Tips and Tricks
PIVOT and UNPIVOT, SQL Column, SQL Scripts, SQL Server

To count a particular value across all columns of a table, use a CASE sum, CROSS APPLY with VALUES, UNPIVOT or UNION ALL. This post tests all four on a staff contact table, compares their reads on 200,000 rows, and builds the column list with dynamic SQL.

Read More
Diagram of SQL Server cluster setup setting the folder permission on the DATA folder under a volume mount point and failing with HResult 0x84cf0003, with the ruled out causes and the real cause, the Audit Object Access policy from a GPO

0x84cf0003: Cluster Install Fails Updating Permission Setting for Folder

December 27, 2018
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Error Messages, SQL Server, SQL Server Cluster, SQL Server Installation

A SQL Server cluster install failed with 0x84cf0003: Updating permission setting for folder failed. Service account rights and folder permissions were fine. The cause was the Audit Object Access policy from a GPO.

Read More
Gouache painting of baskets of apples and pears with a line of leftover apples, one of them vermilion

EXCEPT Operator in SQL Server: Distinct Rows and Differences

December 26, 2018
Pinal Dave
SQL Tips and Tricks
SQL Distinct, SQL Operator, SQL Scripts, SQL Server

The EXCEPT operator returns the rows of one query that are missing from another, with duplicates removed. This post shows the difference between two small order tables, the old WHERE 1 = 0 trick for distinct rows, and how NULLs behave.

Read More
Previous 1 … 188 189 190 191 192 193 194 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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