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 hand moving a magnifying glass along a shelf of plain matching books, one book pulled halfway out.

Searching Every Stored Procedure for a Word

June 1, 2007
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table

Searching every stored procedure through sys.sql_modules finds text quickly, but comments, case, dynamic SQL, and other databases need care.

Read More
SQL SERVER - Retrieve Information of SQL Server Agent Jobs

SQL SERVER – Retrieve Information of SQL Server Agent Jobs

May 31, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Agent, SQL Stored Procedure

sp_help_job returns information about SQL Server Agent jobs in msdb. Run it with no parameters to list every job, plus a few related Agent posts.

Read More
Matching brass fittings, blue wedges and wooden knobs align across two divided trays.

CTE Column Names: Rename Positions Without Moving Values

May 28, 2007
Pinal Dave
SQL Tips and Tricks
CTE, SQL Scripts, SQL Server

CTE column names rename positions without moving values. Compare inner aliases, report names and a misleading reversed list.

Read More
A hand fitting the matching hose connector to a brass garden tap, three other connectors on the ledge below

Which SQL Server Client Driver to Use Now

May 27, 2007
Pinal Dave
SQL Tips and Tricks
Developer, SQL Connection, SQL Server, SQL Server Encryption

Choose a SQL Server client driver by application stack: ODBC, current OLE DB, Microsoft.Data.SqlClient, or JDBC, then test security defaults.

Read More
Fill Factor.

SQL SERVER – Change Default Fill Factor For Index

May 25, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL Server Configuration

The Default Fill Factor in SQL Server is 0. Change it with sp_configure to leave free space on index pages and reduce page splits. I like mine at 90.

Read More
Gouache painting: on a sunny potting bench a blue glazed flower pot sits in its blue saucer and a sage pot in its sage saucer, both pairs matched and set side by side

Composite Keys: Match Complete Pairs Instead of Separate Lists

May 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Joins, SQL Scripts, SQL Server

Composite keys need a complete pair match when the allowed values are defined together. I don’t split the components into independent lists. Doing so can admit combinations that were never allowed.

Read More
A striped hand-knitted scarf on a chair, no color repeated, with two unused balls of yarn in a basket on the seat.

A Quote of the Day From a Table, With No Repeats Until All Are Used

May 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Random, SQL Scripts, SQL Server, SQL Transactions

Build a quote of the day table that rotates without repeats, handles concurrent requests, and supports a stable date-based selection.

Read More
Previous 1 … 443 444 445 446 447 448 449 … 455 Next
  • Books
  • Testimonials
  • Privacy Policy

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