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
Hands tipping a large milk churn over a small teacup, milk flooding the table, a tiny cream jug unused

SELECT * in Production Code: The Hidden Costs

April 18, 2011
Pinal Dave
SQL Performance
SQL Coding Standards, SQL Index, SQL Server, SQL View

See the real costs of SELECT * in production code: lost covering indexes, lookups, stale view metadata, broken inserts and wider results.

Read More
An open ledger on a reading stand with a thin sheet of glass laid over the pages.

SQL SERVER – Making Database to Read Only – Changing Database to Read/Write

April 16, 2011
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server

A reader attached a client database and it showed as Read Only. Two simple ALTER DATABASE scripts switch a database to READ_ONLY and back to READ_WRITE.

Read More
SQL SERVER - FIX - ERROR : Msg 3201, Level 16 Cannot open backup device . Operating system error 5(Access is denied.)

SQL SERVER – FIX – ERROR : Msg 3201, Level 16 Cannot open backup device . Operating system error 5(Access is denied.)

April 13, 2011
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Error Messages, SQL Server

Msg 3201, cannot open backup device, operating system error 5 (Access is denied). The SQL Server service account needed permission on the disk.

Read More
A finite ceramic reservoir supplies two vessels through separate connected spouts.

SQL SERVER – TempDB in RAM for Performance

April 10, 2011
Pinal Dave
SQL Performance
SQL Server, SQL TempDB

TempDB in RAM needs a review of capacity, support and memory pressure. I compare those costs with the bottleneck it would address.

Read More
Hands feeding a long knotted rope into harbor water, a red rag tied at a knot far down the line

OFFSET FETCH Paging and Its Deep Page Problem

April 5, 2011
Pinal Dave
SQL Performance
SQL Order By, SQL Paging, SQL Performance, SQL Server

Use OFFSET FETCH with a unique sort order, compare early and deep page reads, and decide when a cursor based approach fits better.

Read More
Two identical glasses of water, one with a red drop sinking in it

Rows That Look Identical but Are Not: Finding Hidden Characters

April 1, 2011
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Server, SQL String, Unicode

Expose hidden characters with DATALENGTH and UNICODE, clean known whitespace safely, and add a constraint to prevent recurrence.

Read More
Gouache painting: from a wooden beam hang two brass bells with a wide gap between them

hierarchyid GetDescendant: Insert Between Siblings

March 30, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

hierarchyid GetDescendant can generate a sibling location before, after or between existing bounds. This read-only example computes paths without inserting records or guaranteeing allocation.

Read More
Previous 1 … 321 322 323 324 325 326 327 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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