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
Three upright carved wooden forms stand in a shallow wooden tray beside a red cloth and tool case.

REPLICATE: Zero Copies and Negative Counts Differ

January 27, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

REPLICATE treats zero copies differently from a negative count. I keep the source and requested count beside the result. Byte lengths and NULL flags reveal several blank-looking outcomes.

Read More
A freshly varnished wooden boat on a boatyard slipway with no mast yet, ropes and oars lying beside it.

Standard Settings for a New SQL Server Install

January 26, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, MAXDOP, SQL Server Configuration, SQL Server Installation

Review standard settings for a new SQL Server install, including memory, MAXDOP, tempdb, backups, and alerts before users depend on it.

Read More
SQL SERVER - 2005 - Database Table Partitioning Tutorial - How to Horizontal Partition Database Table

SQL SERVER – 2005 – Database Table Partitioning Tutorial – How to Horizontal Partition Database Table

January 25, 2008
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Server, Table Partitioning

A simple Table Partitioning tutorial for SQL Server 2005 that shows, step by step, how to horizontally partition a database table across two filegroups.

Read More
SQL SERVER - 2005 - Introduction to Partitioning

SQL SERVER – 2005 – Introduction to Partitioning

January 24, 2008
Pinal Dave
SQL Tips and Tricks
SQL Data Storage

A short introduction to partitioning in SQL Server 2005: very large tables and indexes are split into smaller parts by ranges, across filegroups, for performance.

Read More
A row of closed beach huts on a quiet promenade, one with a small window left propped open.

Checking Every Database for Risky Settings

January 23, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, Shrinking Database, SQL Server Configuration

Find risky settings across every SQL Server database, including AUTO_SHRINK, AUTO_CLOSE, page verification, recovery model, and ownership.

Read More
SQLAuthority News - Fix : Remote Desktop Copy Paste Stop Working

SQLAuthority News – Fix : Remote Desktop Copy Paste Stop Working

January 22, 2008
Pinal Dave
SQLAuthority News
Database, DBA, SQL Error Messages, Vista

My Remote Desktop copy paste stopped working both ways while I worked on a remote SQL Server. Restarting did not help, but the fix at the end of the post did.

Read More
Database files listing.

SQL SERVER – Get a Row Per File of a Database as Stored in the Master Database

January 21, 2008
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server, SQL System Table

Each database has at least two files. This quick script on sys.master_files returns a row per file of a database, just as it is stored in master.

Read More
SQL SERVER - Introduction to Statistical Functions - VAR, STDEVP, STDEV, VARP

SQL SERVER – Introduction to Statistical Functions – VAR, STDEVP, STDEV, VARP

January 20, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function

VAR, STDEVP, STDEV and VARP are statistical functions that also fit the aggregate function definition. A quick AdventureWorks example shows all four.

Read More
SQL SERVER - Introduction to Aggregate Functions

SQL SERVER – Introduction to Aggregate Functions

January 19, 2008
Pinal Dave
SQL Interview Questions and Answers
SQL Function

What are Aggregate Functions in SQL Server? The Books Online definition, the full list, and the NULL and GROUP BY rules that candidates often miss.

Read More
Two empty pale ceramic bowls beside a small terracotta pebble.

UNICODE: Supplementary Characters Depend on the Collation

January 18, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

UNICODE returns an integer for the first character, and supplementary-character support affects that integer. I make the collation explicit when interpreting those values. Otherwise the same visible input can produce a misleading comparison.

Read More
Previous 1 … 542 543 544 545 546 547 548 … 590 Next
  • Books
  • Testimonials
  • Privacy Policy

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