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 plain wooden sorting box with separate compartments and a brass latch on a softly lit table.

SQL Injection: How It Works and How to Stop It

March 10, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Security

Prevent SQL injection by separating values from command text, parameterizing dynamic SQL, and validating object names before using QUOTENAME.

Read More
Execution Plan for Index Seek.

SQL SERVER – Improve Performance by Reducing IO – Creating Covered Index

March 9, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

My T-SQL Tuesday #004 post on how a covered index can improve performance by reducing IO. Run the demo on a test server only, never on production.

Read More
Unmarked wooden spokes radiate from a brass hub toward blue, terracotta and pale stones.

ATN2: Keep the Quadrant When Calculating an Angle

March 8, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

ATN2 uses two components to calculate an angle while retaining its quadrant. I keep the argument order and angle unit visible. Dividing one component by the other would lose useful information and introduce a zero-denominator case.

Read More
An old wooden window frame on sawhorses, half restored and primed, its original glass panes kept in place.

Replacing Old Syntax in Legacy T-SQL

March 7, 2010
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Datatype, SQL Deprecated Feature, SQL Joins

Modernize legacy T-SQL by replacing old joins, TEXT columns, and fragile RAISERROR forms with clear, tested alternatives.

Read More
A cardboard model house beside an empty plot where string lines and stakes mark out rooms in the grass.

Modeling Data Before Writing Tables

March 6, 2010
Pinal Dave
SQL Tips and Tricks
Database, Normalization, Primary Key, SQL Constraint and Keys

Modeling data before tables clarifies entities, relationships, keys, and grain so schema changes do not discover the rules too late.

Read More
SQL SERVER - Order of Columns in Update Statement Does not Matter

SQL SERVER – Order of Columns in Update Statement Does not Matter

March 5, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Does the order of columns in UPDATE statements matter? No. Setting Col1 before Col2 or the other way round gives the same result in SQL Server.

Read More
Illustrated cover: TRUNCATE Can Roll Back

SQL SERVER – Rollback TRUNCATE Command in Transaction

March 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, Transaction Log

Many believe TRUNCATE cannot be rolled back. It can. Here is a Rollback TRUNCATE command example inside a transaction, and why TRUNCATE is logged.

Read More
Previous 1 … 657 658 659 660 661 662 663 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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