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 - Unable to Launch SQL Server Configuration Manager. Error: Cannot Connect to WMI Provider. [0x80070422]

SQL SERVER – Unable to Launch SQL Server Configuration Manager. Error: Cannot Connect to WMI Provider. [0x80070422]

October 1, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Configuration, Starting SQL, WMI

SQL Server Configuration Manager would not open on my VM: Cannot connect to WMI provider [0x80070422]. I share what caused it and how I fixed it.

Read More
A fitted drill chuck and bit with the hand drill drive disengaged

Checking Optional Features Installed on an Instance From T-SQL

September 29, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

A 1 in SERVERPROPERTY does not mean the feature runs. Here is how I line up the flag, the setting and the service in one query.

Read More
Gouache painting of calendar cards arranged through the seasons

Formatted Date Alias in ORDER BY: Sort by the Real Date in SQL Server

September 28, 2018
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Order By, SQL Scripts

A formatted date alias can change ORDER BY from a date sort into a text sort. The tests here reproduce the wrong order, show three ways to sort by the real date, and explain the two errors you hit when you try to be clever with the alias.

Read More
A rowboat with an oversized oar laid across it, sticking out both sides, a red ribbon on the handle

Index Key Size Limits: 900 and 1,700 Bytes Explained

September 26, 2018
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Error Messages, SQL Index, SQL Server

Check index key size against the 900-byte clustered and 1,700-byte nonclustered limits, then narrow keys without losing query semantics.

Read More
A small sample dish holds selected tiles beside a larger populated source tray.

SQL SERVER – Selecting Random n Rows from a Table

September 24, 2018
Pinal Dave
SQL Tips and Tricks
SQL Random, SQL Scripts, SQL Server

To select random-looking n Rows, I can sort by NEWID and use TOP. A developer wanted ten AdventureWorks Product rows.

Read More
Selected cabinet fittings and blank patterns are reviewed for a differently shaped destination.

SQL SERVER – Restoring SQL Server 2017 to SQL Server 2005 Using Generate Scripts

September 21, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server, SQL Server Management Studio

I used generate scripts for a historical SQL Server 2017-to-2005 migration. It was a logical migration rather than a backward backup restore.

Read More
Gouache illustration of the first and last day of the current date's month, using the first and last sheets between two bookends.

SQL SERVER – Simple Method to Find FIRST and LAST Day of Current Date

September 20, 2018
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

I calculate the FIRST and LAST Day of Current Date using explicit date boundaries. The historical sample starts on October 28, 2017.

Read More
Previous 1 … 101 102 103 104 105 106 107 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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