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 - 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
Gouache painting: along a long bakery bench stands a row of six pie tins, some holding baked pies and some empty

LAG IGNORE NULLS: Read the Previous Available Value

April 24, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Order By, SQL Server

LAG IGNORE NULLS reads the previous non-NULL value within an ordered partition. These examples distinguish skipped rows, missing previous values and the supplied default.

Read More
Coarse brass rods and fine needles stored in separate leather tool rolls.

Decimal Division: Inspect Precision Before the Final Cast

April 23, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL NULL

Decimal division derives its own precision and scale before your final cast. Compare wide and bounded inputs, then test rounding and valid numeric ranges.

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
Gouache painting: three stations on a workshop wall and bench

SPACE: Keep Blank Text, Empty Text and NULL Distinct

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

SPACE builds a present blank string from a count. Keep empty text and NULL separate, and choose a measurement that retains supplied spaces.

Read More
Previous 1 … 470 471 472 473 474 475 476 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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