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
SQL SERVER - 2008 - Two Convenient Features Inline Assignment - Inline Operations

SQL SERVER – 2008 – Two Convenient Features Inline Assignment – Inline Operations

July 9, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility

Two convenient SQL Server 2008 features: inline assignment with DECLARE @idx INT = 0, and inline operations like SET @idx += 1. Fewer lines than before.

Read More
SQL SERVER - Find Space Used For Any Particular Table

SQL SERVER – Find Space Used For Any Particular Table

July 8, 2008
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Server, SQL Stored Procedure

Running out of drive space is a common reason SQL Server stops. sp_spaceused shows the Space Used by any table, with its row count and index size.

Read More
SQL SERVER - 2008 - Introduction to Row Compression

SQL SERVER – 2008 – Introduction to Row Compression

July 6, 2008
Pinal Dave
SQL Performance
SQL Backup and Restore, SQL Data Storage, SQL Scripts

Row Compression in SQL Server 2008 stores zero and null values without using disk space. Check the savings first with sp_estimate_data_compression_savings.

Read More
A screenshot of a list of BAK files in a Windows File Explorer window.

SQL SERVER – 2008 – Introduction to New Feature of Backup Compression

July 3, 2008
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Scripts

SQL Server 2008 adds Backup Compression. I back up AdventureWorks with and without compression, compare file sizes and show how to turn it on at server level.

Read More
SQL SERVER - 2008 - Insert Multiple Records Using One Insert Statement - Use of Row Constructor

SQL SERVER – 2008 – Insert Multiple Records Using One Insert Statement – Use of Row Constructor

July 2, 2008
Pinal Dave
SQL Performance
SQL Scripts

SQL Server 2008 lets you insert multiple records using one INSERT statement with a row constructor. I compare it with separate INSERTs and the UNION ALL method.

Read More
A sage ceramic jar and a dark glass ink bottle on folded cream cloth beside a brass magnifying glass and vermilion cord.

COLLATIONPROPERTY CodePage: Identify Text Encoding

June 28, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

COLLATIONPROPERTY CodePage reports varchar encoding metadata. Compare code pages 1252 and 65001 without confusing inspection with text conversion.

Read More
Matching blue bowls occupy the upper-left compartments of two wooden display frames.

DATEPART Quarter: Keep the Year Beside the Quarter

June 26, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

DATEPART quarter identifies a calendar component. I keep its year when reporting separate periods. A cross-year January case shows how quarter-only grouping combines events.

Read More
Previous 1 … 310 311 312 313 314 315 316 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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