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
Magnifying glass tool.

SQL SERVER – List of all the Views from Database

October 29, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL View

Hundreds of Views and no idea which are indexed? A quick query on sys.views lists every view with its schema and whether it is indexed or indexable.

Read More
SQL SERVER - SQL Challenge - SQL Puzzle - Query Creating Most TempDB IO Usage

SQL SERVER – SQL Challenge – SQL Puzzle – Query Creating Most TempDB IO Usage

October 27, 2010
Pinal Dave
SQL Puzzle
Best Practices, Database, SQL Scripts, SQL TempDB

My SQL puzzle: which queries create the most TempDB IO and grow its size? Answer with any DMV, and all valid answers get published here with credit.

Read More
Gouache painting: seen from the side, a hillside of grapevines steps down in three terraces

hierarchyid GetLevel: Count the Path Depth

October 25, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

hierarchyid GetLevel identifies depth within a logical path. The read-only example distinguishes the root, children, grandchildren and a fractional sibling label.

Read More
SQL SERVER - Taking Multiple Backup of Database in Single Command - Mirrored Database Backup

SQL SERVER – Taking Multiple Backup of Database in Single Command – Mirrored Database Backup

October 23, 2010
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts

Two DISK targets in one BACKUP command split the file, they do not copy it. Learn how a mirrored database backup takes multiple backups in a single command.

Read More
Uneven herb bundles on a brass balance beside a compartment tray of separate portions.

Stored Totals: Find Drift Before Repairing It

October 22, 2010
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server

Stored totals can drift from their authoritative line amounts. This private demonstration finds two mismatches, retains empty orders and accepts valid credits. It checks decimal range before a private repair and explains why concurrency needs separate proof.

Read More
SQL SERVER - Change Column DataTypes

SQL SERVER – Change Column DataTypes

October 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Scripts, SQL Server

A simple way to change column datatypes in SQL Server with ALTER TABLE ALTER COLUMN, shown on a sample table and checked with sp_help.

Read More
Execution plan of SQL Server query.

SQL SERVER – System Stored Procedure sys.sp_tables

October 17, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure, SQL System Table

Most people run SELECT * FROM sys.tables to list tables. If you do not need all those details, sys.sp_tables returns tables and views with schema names.

Read More
Previous 1 … 247 248 249 250 251 252 253 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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