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
Gouache painting of a person sorting punctuation into a separate tray beside a database cabinet

SQL Injection: The Joke, the Failure and the Parameter Fix

October 12, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Dynamic SQL, SQL Humor, SQL Server Security

SQL Injection makes a good joke and a terrible incident. The tests here show a concatenated query returning every row for one hostile name, the same text passed as a parameter returning none, a table name caught by QUOTENAME, and a read-only user blocked from dropping a table.

Read More
A baker's hand fitting a star nozzle to a piping bag, a round nozzle set aside beside a half-decorated cake

OLE DB or ODBC for Connecting to SQL Server

October 11, 2008
Pinal Dave
SQL Tips and Tricks
Linked Server, SQL Connection, SQL Server, SSIS

Choose OLE DB or ODBC for SQL Server by the component you run, especially SSIS, linked servers, and applications using current drivers.

Read More
SQL Server 2005 Query Window.

SQL SERVER – 2008 – TRIM() Function – User Defined Function

October 9, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

SQL Server 2000, 2005 and 2008 have no TRIM() function, but LTRIM and RTRIM together do the job. Here is a simple UDF that trims both sides at once.

Read More
Gouache painting: five round buns sit in a row on a long bakery board

SUBSTRING Boundaries: Start at Zero, One or Beyond

October 8, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

SUBSTRING boundaries distinguish start zero, start one and positions past the end. Read empty strings, shortened counts and typed NULL results.

Read More
Gouache painting: on a straight farm lane two gateposts stand apart

SWITCHOFFSET Versus TODATETIMEOFFSET: Two Offset Operations

October 7, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

SWITCHOFFSET versus TODATETIMEOFFSET depends on the input contract. Preserve a known instant or attach an offset to a genuinely local clock.

Read More
SQLAuthority News - Author Visit - SQL Hour at Patni Computer Systems

SQLAuthority News – Author Visit – SQL Hour at Patni Computer Systems

October 7, 2008
Pinal Dave
SQL Tips and Tricks
MVP, SQL User Group, SQLAuthority Author Visit

Our user group’s first SQL Hour at Patni Computer Systems, Gandhinagar: Jacob Sebastian on Query Optimization Basics and my session Know your SQL.

Read More
A hand lifts the corner of a doormat to show bare stone and the faint outline where a spare key used to lie.

Renaming or Disabling the sa Login

October 6, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Login, SQL Password, SQL Server Security

Renaming or disabling the sa login requires a dependency inventory, tested alternate admin access, and monitoring after the change.

Read More
Previous 1 … 491 492 493 494 495 496 497 … 571 Next
  • Books
  • Testimonials
  • Privacy Policy

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