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
Gouache painting of an old stump with many growth rings beside a young sapling tied with a vermilion ribbon.

Build Your Own SQL Script Library

November 1, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Coding Standards, SQL Scripts

A SQL script library saves you from solving the same problem twice. This post shows a folder layout by task, a header block with the tested version, naming habits, a safe history, tests on a scratch server and a way to retire old scripts, with one small read-only script as an example.

Read More
Disable IntelliSense.

SQL SERVER – Disable IntelliSense in SQL Server Management Studio

October 31, 2018
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

A client with over 350,000 tables in one database saw metadata locking every time SSMS opened. Disabling IntelliSense in SQL Server Management Studio fixed it.

Read More
Torn continuous printer paper spilling off a bench under a red desk lamp

SQL SERVER – XML Document Could Not be Created Because Server Memory is Low. Use sp_xml_removedocument to release XML documents

October 30, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Stored Procedure, SQL XML

XML document could not be created, error 6624, on a server with 300 GB free. What OPENXML really costs, measured, and why XQuery is the fix.

Read More
SQL Server backup size tool.

SQL SERVER – Finding Compression Ratio of Backup

October 27, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Scripts, SQL Server

Is there a way to know the compression ratio of backup files in SQL Server? Here is a quick script on msdb backupset that compares backup size with compressed size.

Read More
SQL SERVER - Reporting Services Not Starting After Maintenance Window

SQL SERVER – Reporting Services Not Starting After Maintenance Window

October 25, 2018
Pinal Dave
SQL Tips and Tricks
Reporting Services, SQL Error Messages, SQL Reports, SQL Server

Reporting Services not starting after maintenance? On my lab server every SQL service came back except SSRS. Here is what the log showed.

Read More
A fitted key inventory is inspected within one room while distant doors remain outside its scope.

SQL SERVER – How to Get List of SQL Server Instances Installed on a Machine Via T-SQL?

October 24, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

A registry query lists SQL Server Instances recorded on the Windows host. A customer wanted a T-SQL-only method.

Read More
Gouache painting of a vermilion cart carrying three small stacked wooden tables

Drop Multiple Tables with One DROP TABLE Statement

October 23, 2018
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Table Operation

To drop multiple tables in SQL Server, list them in one DROP TABLE statement, referencing tables first. This post tests the order rule on a parent and child table and shows what happens after an error. It also covers IF EXISTS, drops by name pattern and temporary tables.

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

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