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
Index on View with Query Usage.

SQL SERVER – Interesting Observation – Index on Index View Used in Similar Query

September 24, 2009
Pinal Dave
SQL Puzzle
SQL Index, SQL Scripts, SQL White Papers

A query on the base table used an index it did not own. It was the index on index view of the same table, an interesting observation from an optimization project.

Read More
SQL SERVER - Insert Values of Stored Procedure in Table - Use Table Valued Function

SQL SERVER – Insert Values of Stored Procedure in Table – Use Table Valued Function

September 23, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Stored Procedure, SQL Table Operation

How do you insert values of stored procedure output into a table? The traditional temp table way, and an alternate method with a Table Valued Function.

Read More
Gouache painting: on a farm table two bundles of asparagus, each tied with twine around three spears, sit side by side

Integer Division: Keep Quotient and Remainder Together

September 22, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

Integer division and modulo can reconstruct the original signed dividend. These read-only cases keep both operands, quotient, remainder and reconstructed value together.

Read More
SQL SERVER - Introduction to Service Broker and Sample Script

SQL SERVER – Introduction to Service Broker and Sample Script

September 21, 2009
Pinal Dave
SQL Tips and Tricks
Service Broker, SQL Download, SQL Scripts

Here is my introduction to Service Broker and sample script: messaging and queuing between instances, conversations and dialogs in SQL Server 2005.

Read More
Execution plan in SQL Server Management Studio.

SQL SERVER – Execution Plan and Results of Aggregate Concatenation Queries Depend Upon Expression Location

September 20, 2009
Pinal Dave
SQL Puzzle
SQL Documentation

Aggregate concatenation queries can return different results depending on where the expression sits. A simple script based on a note I found on Ward Pond’s blog.

Read More
A small field easel in a meadow with a palette and three brushes

A Minimal BI Stack on SQL Server

September 19, 2009
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, SQL Reports, SQL Server, SQL Server Agent

A minimal BI stack can start with SQL Server tables, stable views, one scheduled load, and one reporting tool that a small team can run.

Read More
A string of dried chili peppers hung in order from smallest to largest, hands adding one fresh red pepper in place.

Ordered Comma Lists With STRING_AGG and WITHIN GROUP

September 18, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server, SQL String

Build ordered comma lists with STRING_AGG and WITHIN GROUP, remove duplicates, handle nulls, and avoid fixed-length result limits.

Read More
SQL SERVER - Converting Stored Procedure into Table Valued Function

SQL SERVER – Converting Stored Procedure into Table Valued Function

September 17, 2009
Pinal Dave
SQL Performance
SQL Function, SQL Stored Procedure

Not every stored procedure should become a Table Valued Function. Here is which kind of SP qualifies, mainly one whose output you insert into another table.

Read More
Bees crowding one narrow entrance of a wooden beehive while a second opening on the side stays almost empty.

High-Frequency Inserts Without Blocking

September 16, 2009
Pinal Dave
SQL Performance
SQL Index, SQL Lock, SQL Server, SQL Wait Stats, Transaction Log

High-frequency inserts can stall on the log, indexes, or last-page contention; learn to diagnose the wait and choose targeted SQL Server fixes.

Read More
SQL SERVER - Cryptography in SQL Server 2008

SQL SERVER – Cryptography in SQL Server 2008

September 15, 2009
Pinal Dave
SQL Tips and Tricks
SQL Server Security

A brief look at cryptography in SQL Server 2005 and 2008: why encryption belongs at the engine level, its effect on performance, and authentication basics.

Read More
Previous 1 … 480 481 482 483 484 485 486 … 593 Next
  • Books
  • Testimonials
  • Privacy Policy

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