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
Eight identical plain boxes packed in a shallow wooden tray in two rows of four, one box red.

Pages and Extents: How SQL Server Stores Rows in a Data File

August 29, 2013
Pinal Dave
SQL Tips and Tricks
Database, SQL Data Storage, SQL Datatype, SQL DMV

Pages and Extents are the building blocks of every SQL Server data file. A page is 8 KB, an extent is eight pages, and a row has to fit on a page. This post shows how to count the pages a table uses and what happens when a row is too wide.

Read More
A wooden seed tray seen from above with rows and columns of small green seedlings, one cell marked with a red stick.

Rows, Columns and Tables: How a Database Holds Information

August 21, 2013
Pinal Dave
SQL Tips and Tricks
Database, SQL Column, SQL Constraint and Keys, SQL Data Storage, SQL Table Operation

Rows, Columns and Tables are the three ideas behind every relational database. A table holds one kind of thing, a column describes one fact about it, and a row records one item. This post builds a small Books table in SQL Server and reads it back by row and by column.

Read More
A portion scoop beside a mound and equal portions of the same mixture

Readable File Sizes: Converting Bytes to KB, MB and GB

August 20, 2013
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Datatype, SQL Server

Turn raw bytes into friendly sizes without losing accuracy. Includes the overflow trap and the 500 GB drive that shows as 465.7.

Read More
Two wall shelves of glass jars, each jar holding a different grain, lentil or bean, one jar with a red lid.

What Are Filegroups in SQL Server and When to Use Them

August 15, 2013
Pinal Dave
SQL Tips and Tricks
Database, SQL Data Storage, SQL Scripts, SQL Server Architecture

What are filegroups in SQL Server? A filegroup is a named container for data files, and an ordinary table or index lives in exactly one. This post builds a small demo, shows where a table lands, and gives honest advice on when extra filegroups help and when they only add work.

Read More
A tall wooden cabinet of small drawers with a paper strip running out of it, a small lamp with a red base glowing beside it.

Data Files and Log Files: What Each One Does in SQL Server

August 14, 2013
Pinal Dave
SQL Tips and Tricks
Database, SQL Data Storage, SQL Log, Transaction Log

Data Files and Log Files are the two kinds of file every SQL Server database needs. This post explains what lives in each, why the log is written first, and how to list both with a query on sys.database_files.

Read More
Smooth wooden beads scattered on a pale table beside a wooden tray of the same beads sorted into rows, one red bead lifted on a spoon.

Data and Information: Why Every Business Runs on a Database

August 6, 2013
Pinal Dave
SQL Tips and Tricks
Database, SQL Data Storage, SQL Scripts, SQL Table Operation

Data and Information are not the same thing. Data is the raw facts a business stores, and information is the answer you get when a query processes them. This post uses a small bookshop table to show the difference, and why a database does the job better than a ledger or a spreadsheet.

Read More
A line of ants carrying crumbs along a wooden table to one corner, past a red napkin ring.

Why DBCC SHRINKFILE Crawls and How to Watch Its Progress

July 27, 2013
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Data Storage, SQL Server, SQL Server DBCC

Explain why DBCC SHRINKFILE can take hours, monitor percent_complete and waits, and use TRUNCATEONLY before small steps.

Read More
Previous 1 … 8 9 10 11 12 13 14 … 23 Next
  • Books
  • Testimonials
  • Privacy Policy

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