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 - Script: Remove Spaces in Column Name in All Tables

SQL SERVER – Script: Remove Spaces in Column Name in All Tables

December 26, 2015
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server

A reader wanted a script to remove spaces from every column name in all tables. Here it is, with a warning first: renaming columns can break your application.

Read More
SQL SERVER - Getting to understand SQL Server Activity Monitor in SSMS

SQL SERVER – Getting to understand SQL Server Activity Monitor in SSMS

December 25, 2015
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

My notes on the lesser used parts of Activity Monitor in SSMS, like Resource Waits, and how the tool builds them from sys.dm_os_wait_stats at each refresh.

Read More
Diagram of an AlwaysOn primary replica that keeps the OLTP work while backups and reports move to the secondary replica, with the Secondary only backup preference and ApplicationIntent=Read-only

Offloading Backups to a Secondary Replica: Notes from the Field #108

December 24, 2015
Pinal Dave
SQL Tips and Tricks
AlwaysOn, Notes from the Field, SQL Backup and Restore, SQL Scripts, SQL Server

Offloading backups to a secondary replica takes work off the primary server. In Notes from the Field #108, Eduardo Castro explains backup priority and read-only routing for AlwaysOn availability groups.

Read More
SQL SERVER - Unable to drop login - Msg 15170, Level 16, State 1

SQL SERVER – Unable to drop login – Msg 15170, Level 16, State 1

December 23, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Scripts, SQL Server

Cleaning up my demo server, I could not drop login danny because of Msg 15170: the login owns a job. Here is how to find what a login owns and remove it.

Read More
SQL SERVER - Error and Fix for Msg 1907 Cannot recreate index The new index definition does not match the constraint being enforced by the existing index

SQL SERVER – Error and Fix for Msg 1907 Cannot recreate index The new index definition does not match the constraint being enforced by the existing index

December 22, 2015
Pinal Dave
SQL Tips and Tricks
ColumnStore Index, SQL Error Messages

Moving to a Clustered ColumnStore Index can throw Msg 1907: cannot recreate index, as the new definition does not match the constraint. Here is why and the fix.

Read More
SQL SERVER 2016 - New T-SQL Functions - COMPRESS - DECOMPRESS

SQL SERVER 2016 – New T-SQL Functions – COMPRESS – DECOMPRESS

December 21, 2015
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Server Security

SQL Server 2016 adds two new string functions, COMPRESS – DECOMPRESS. Here is how they work, with examples, and the error you get on older versions.

Read More
A small open wooden toolbox on a porch step holding a hammer, screwdriver, spirit level and pliers.

Free Tools Worth Knowing for SQL Server Work

December 21, 2015
Pinal Dave
SQL Tips and Tricks
Query Store, Recommend Tools, SQL Server, SQL Server Management Studio, sqlcmd

Free tools for SQL Server work include Microsoft editors, built-in diagnostics, and community scripts; learn the job each handles and its limits.

Read More
Previous 1 … 342 343 344 345 346 347 348 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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