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 - Deprecated DataType vardecimal

SQL SERVER – Deprecated DataType vardecimal

July 4, 2008
Pinal Dave
SQL Tips and Tricks
MVP

vardecimal, added in SQL Server 2005 SP2, saves space for zero and null values. It is deprecated in SQL Server 2008, where Row Compression covers more datatypes.

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
A hand pours red liquid into a copper jelly mold beside two finished jellies of different colors and the same shape.

Parameterized Queries From Application Code

June 29, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Developer, Dynamic SQL, SQL Server, SQL Server Security

Use parameterized queries from application code to prevent SQL injection, improve plan reuse, and avoid parameter length mistakes.

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 … 501 502 503 504 505 506 507 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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