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
A small red folding bicycle being unfolded on a train platform beside a heavy old bicycle

go-sqlcmd: The New Command Line Tool for SQL Server

October 8, 2019
Pinal Dave
SQL Tips and Tricks
Command Line, SQL Server, SQL Utility, sqlcmd

Set up go-sqlcmd on Windows, verify the executable, run scripts and variables, control output, and review optional container commands.

Read More
Gouache painting of a vase under a glass dome fastened with a vermilion clasp next to an unfinished clay pot

SCHEMABINDING View: What You Can Change in the Table

October 7, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Table Operation, SQL View

A SCHEMABINDING view locks the columns it uses and leaves the other columns of the table free. This post tests which changes SQL Server blocks, shows the messages and lists the bound columns with a query. It also shows how to change a bound column inside one transaction.

Read More
A hammock depends on two firmly connected supporting trees

What is SCHEMABINDING in SQL Server Views? – Interview Question of the Week #245

October 6, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Table Operation, SQL View

SCHEMABINDING keywords prevent tables used in the views to make any such modifications that can affect the view’s definition. 

Read More
Title card: PREEMPTIVE_OS_RSFXDEVICEOPS Wait Type

SQL SERVER – Identifying and Fixing PREEMPTIVE_OS_RSFXDEVICEOPS Wait Type

October 5, 2019
Pinal Dave
SQL Performance
Comprehensive Database Performance Health Check, Filestream, SQL Server, SQL Wait Stats

I walked into a client engagement where I really got stuck with a very interesting scenario with a client with PREEMPTIVE_OS_RSFXDEVICEOPS Wait Type.

Read More
Gouache painting of four wooden chests in an attic with their keys in front and one key in vermilion

Memory-Optimized Files: List Logical and Physical Names

October 4, 2019
Pinal Dave
SQL Performance
In-Memory OLTP, SQL DMV, SQL Memory, SQL Scripts

To list memory-optimized files, join sys.dm_db_xtp_checkpoint_files to sys.database_files. This post builds a small memory-optimized database, shows the container’s logical and physical name and counts its checkpoint files by type and state. It also explains why a container holds far more disk space than its data uses.

Read More
A potato spiralizer preserving a fine ribbon beside coarse whole potato pieces

AVG of an Integer Column Returns an Integer: Getting Decimals Back

October 3, 2019
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Column, SQL Server

The dashboard says the average is 1 when everyone can see it is 1.5. Here is why AVG does that and the one-line fix.

Read More
Gouache painting of three flower stems clipped in one cut by vermilion shears on a florist's bench

Drop Multiple Columns in One ALTER TABLE Statement

October 2, 2019
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Table Operation

To drop multiple columns, list them after one DROP COLUMN in one ALTER TABLE statement. This post tests the syntax on a table with a default, a check constraint and an index, shows the error that a dependent object causes and drops the constraints and columns together. It also explains why the disk space doesn’t return until a rebuild.

Read More
Previous 1 … 142 143 144 145 146 147 148 … 843 Next
  • Books
  • Testimonials
  • Privacy Policy

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