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
A conveyor belt of identical parcels beside a single hand trolley carrying one parcel

What Is a Cursor in SQL Server, and When to Avoid One

July 31, 2012
Pinal Dave
SQL Performance
Best Practices, SQL Performance, SQL Scripts, SQL Server

A cursor in SQL Server took 260 milliseconds where one SELECT took 4. Why the gap exists, how to turn a loop back into a set, and the three cases where a cursor really is the right answer.

Read More
A hand on a frosty windowsill with a red thread tied around one finger, snow and early snowdrops outside

Upcoming Birthdays in the Next 30 Days With T-SQL

July 30, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

Find upcoming birthdays with T-SQL across year boundaries, choose a February 29 policy, and build a clear next-30-days list.

Read More
A hand hanging pruning shears on a shed pegboard where each tool has a painted outline behind it

Keeping Database Documentation Next to the Code

July 22, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Documentation, SQL Server

Keep database documentation close to SQL Server objects with extended properties, durable module comments, and catalog-generated reports.

Read More
SQL SERVER - Find Column Used in Stored Procedure - Search Stored Procedure for Column Name - Part 2

SQL SERVER – Find Column Used in Stored Procedure – Search Stored Procedure for Column Name – Part 2

July 19, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure

Readers improved my script to find column used in stored procedure. Imran Mohammed shares newer scripts to search stored procedure for column name.

Read More
Table comparing the digit 2 with its full-width form, and E=mc2 with E=mc squared, under Latin1_General_CI_AI, which is width insensitive and treats them as equal, and Latin1_General_CI_AI_WS, which is width sensitive and treats them as different

Width Sensitive and Width Insensitive Collation: An Example

July 14, 2012
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Server, Unicode

What is a width sensitive collation? I explain it with a simple example that compares half-width and full-width characters under both collation settings.

Read More
SQL SERVER - CTRL+SHIFT+] Shortcut to Select Code Between Two Parenthesis

SQL SERVER – CTRL+SHIFT+] Shortcut to Select Code Between Two Parenthesis

July 7, 2012
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Management Studio, SQL Shortcut

CTRL+SHIFT+] in SSMS lets you select code between two parenthesis, handy for subqueries and CTEs. Here is how it works at a few cursor positions.

Read More
ntfs

SQL SERVER – NTFS File System Performance for SQL Server

July 6, 2012
Pinal Dave
SQL Performance
SQL Server

A reader asked how to tune the NTFS File System for an 80 GB SQL Server box. I start a list of best practices, like disabling disk indexing; help me finish it.

Read More
Previous 1 … 288 289 290 291 292 293 294 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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