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
SQL SERVER - Solution to Puzzle - Shortest Code to Perform SSN Validation

SQL SERVER – Solution to Puzzle – Shortest Code to Perform SSN Validation

April 29, 2009
Pinal Dave
SQL Puzzle
Database, SQL Scripts

My solution to Jacob Sebastian’s puzzle: the shortest T-SQL code for SSN validation that removes invalid SSN values and returns only the valid ones.

Read More
SQL SERVER - Introduction to SQL Server Encryption and Symmetric Key Encryption Tutorial with Script

SQL SERVER – Introduction to SQL Server Encryption and Symmetric Key Encryption Tutorial with Script

April 28, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Encryption, SQL Server Security

SQL Server Encryption keeps stolen data unreadable. Learn the three level encryption hierarchy, then follow a symmetric key encryption tutorial with the script.

Read More
SQL SERVER - List All the Tables for All Databases Using System Tables

SQL SERVER – List All the Tables for All Databases Using System Tables

April 26, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure, SQL System Table, Undocumented SQL

A one line script with sp_msforeachdb and sys.tables to list all the tables for all databases on a server, updated with ideas from reader comments.

Read More
SQL SERVER - Leading Zero to Number

SQL SERVER – Leading Zero to Number

April 24, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

Readers keep asking how to add a leading zero to a number. Here are my two earlier articles that pad a number with zeros for a fixed width display.

Read More
SQL SERVER - FIX : Error: 18486 Login failed for user 'sa' because the account is currently locked out. The system administrator can unlock it. - Unlock SA Login

SQL SERVER – FIX : Error: 18486 Login failed for user ‘sa’ because the account is currently locked out. The system administrator can unlock it. – Unlock SA Login

April 23, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server Security

Error 18486 means the sa account is locked out, often after brute force attempts by hackers. Here is why it happens and how to unlock SA login.

Read More
Blue and sage bowls with terracotta rim beads beside two smaller cups on a pale tray.

FOR XML PATH: Choose Attributes and Nested Elements With Aliases

April 17, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

FOR XML PATH interprets column aliases as directions for the output’s attributes and element hierarchy. I use three aliases to shape two rows. The source columns stay ordinary relational values.

Read More
Gouache painting: three stepping stone paths cross a meadow

geometry Line Endpoints: Preserve the Described Direction

April 15, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry line endpoints identify the first and last described points. Reversing the same path exchanges them, while a closed line starts and ends together.

Read More
Previous 1 … 286 287 288 289 290 291 292 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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