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
An old fireplace buried in years of gray ash, a small shovel and an empty red ash bucket beside it

SQL SERVER – Huge Size of SSISDB – Catalog Database SSISDB Cleanup Script

November 24, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Encryption, SSIS

SSISDB grew huge on a client’s server. Here is my cleanup script for the SSISDB catalog database, and why I avoid scripts that modify system objects.

Read More
Gouache painting of dents in snow and boot prints leading away to a vermilion sled

Schema Changes History Report: See Who Dropped a Table

November 23, 2018
Pinal Dave
SQL Tips and Tricks
Schema, SQL Reports, SQL Scripts, SQL Server Security

The Schema Changes History report shows who created, altered or dropped a table. This post reads the same default trace with T-SQL, tests it on a table and a database drop, and explains the limits: file rollover and shared logins. It ends with ways to keep the history longer.

Read More
Gouache painting of a slate blue jug on a small wooden pouring stand pouring glaze into a vermilion jar

Dynamic SQL Result Into a Variable with sp_executesql

November 20, 2018
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Scripts, SQL Stored Procedure, SQL Variable

To get a dynamic SQL result into a variable, use sp_executesql with an OUTPUT parameter. This post tests the pattern on a small demo, explains Msg 214 and shows counts, JSON, new identity values and generic table names. It also covers INSERT with EXEC for result sets.

Read More
Logical and Physical Names of Files in SQL Server Database.

SQL SERVER – Get List of the Logical and Physical Name of the Files in the Entire Database

November 19, 2018
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, System Database

During a Health Check we needed the logical and physical name of every file in every database on the instance. Here is the script I built, with the file type too.

Read More
SQL SERVER - Optimize Key Lookup by Creating Index with Include Columns

SQL SERVER – Optimize Key Lookup by Creating Index with Include Columns

November 17, 2018
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Index, SQL Operator, SQL Scripts, SQL Server

A query slowed to over 10 minutes because of a big key lookup. Here is how I optimize key lookup operations by creating an index with include columns.

Read More
A strawberry plant rooting a runner in a small red pot, garden snips ready to cut the old stem

SQL SERVER – Steps to Change IP Address of SQL Server Failover Cluster Instance

November 15, 2018
Pinal Dave
SQL Tips and Tricks
SQL High Availability, SQL Server, SQL Server Cluster

Moving to a new VLAN? These are the exact steps to change the IP addresses of the Windows cluster nodes and of a SQL Server failover cluster instance.

Read More
ProfileList Dialog.

SQL SERVER – Initializing the FallBack Certificate Failed With Error Code: 1, State: 20, Error Number: 0

November 12, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Encryption, SQL Server Services, Starting SQL

After a service account password change, SQL Server would not start: Initializing the FallBack certificate failed, error code 1. Here is the fix.

Read More
Previous 1 … 95 96 97 98 99 100 101 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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