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
Table of cities and population in millions.

SQL SERVER – Use ROLL UP Clause instead of COMPUTE BY

April 2, 2012
Pinal Dave
SQL Tips and Tricks

After an upgrade to SQL Server 2012, reports failed because COMPUTE BY is deprecated. I show how to rewrite such queries with the ROLL UP clause.

Read More
SQL SERVER - A Puzzle - Illusion - Confusion - April Fools' Day

SQL SERVER – A Puzzle – Illusion – Confusion – April Fools’ Day

April 1, 2012
Pinal Dave
SQL Puzzle
SQL Scripts

A light puzzle for April Fools’ Day: two division queries that look the same in SSMS. Will they return the same result, and why?

Read More
Table of columns and datatypes.

SQL SERVER – sp_describe_first_result_set New System Stored Procedure in SQL Server 2012

March 31, 2012
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

SQL Server 2012 adds the new system stored procedure sp_describe_first_result_set. I try it on a query and a view to see what metadata it returns.

Read More
SQL SERVER - Online Index Rebuilding Index Improvement in SQL Server 2012

SQL SERVER – Online Index Rebuilding Index Improvement in SQL Server 2012

March 30, 2012
Pinal Dave
SQL Tips and Tricks
SQL Index

Online index rebuilding with VARCHAR(MAX) or NVARCHAR(MAX) columns failed in SQL Server 2008. SQL Server 2012 changes that, and here is my test.

Read More
DatabaseStatus DATABASEPROPERTYEX.

SQL SERVER – Difference between DATABASEPROPERTY and DATABASEPROPERTYEX

March 29, 2012
Pinal Dave
SQL Tips and Tricks

What is the difference between DATABASEPROPERTY and DATABASEPROPERTYEX? I asked on Facebook, and here are the best answers from readers.

Read More
Gouache painting of a coiled measuring ribbon beside two growing stacks of blocks on a craft table.

Compound Assignment Operators in SQL Server: SQL in Sixty Seconds #009

March 28, 2012
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Operator, SQL Scripts, SQL Variable

Compound assignment operators such as += and *= combine an operation with an assignment in T-SQL. The tests here run all eight operators on SQL Server 2025, and show how NULL, integer division, overflow, truncation and precedence change the result.

Read More
Right align numerics SQL Server query execution options.

SQL SERVER – Right Aligning Numerics in SQL Server Management Studio (SSMS)

March 27, 2012
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

Numbers in SSMS results are hard to read when they do not line up. Right aligning numerics takes one query option, and I show where to find it.

Read More
Previous 1 … 544 545 546 547 548 549 550 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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