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 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
One blank cream reference card beside a plain pencil and small paper clip on a wooden desk.

A One Page Reference for Everyday SQL Server Work

June 25, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Build a practical SQL Server reference around everyday questions, with compact queries for context, objects, requests, space, and transactions.

Read More
A fingertip presses into a gap in an old stone wall where crumbled mortar lets a green shoot push through.

Finding Dynamic SQL Open to Injection

June 24, 2008
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Server, SQL Server Security, SQL Stored Procedure

Find dynamic SQL open to injection by searching module definitions for concatenation, then replace data concatenation with parameters.

Read More
A hand holds a magnifying glass under a garden leaf, revealing a cluster of insect eggs on its underside.

Reading SQL Server Release Notes Before You Patch

June 23, 2008
Pinal Dave
SQL Tips and Tricks
Cumulative Update, DBA, SQL Documentation, SQL Patch, SQL Server

Reading SQL Server Release Notes before patching helps you find known issues, fixes, behavior changes, and workload risks.

Read More
SQL SERVER - Create Check Constraint on Column

SQL SERVER – Create Check Constraint on Column

June 22, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Error Messages, SQL Scripts

A junior developer wrote a trigger to block invalid data. A Check Constraint is simpler. My example limits PostalCode length in AdventureWorks and tests it.

Read More
Previous 1 … 503 504 505 506 507 508 509 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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