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
An aquarium built into a wall between two rooms, the same fish seen from both sides as a hand feeds them.

FileTable: Files You Can Open in Explorer and Query in T-SQL

October 19, 2012
Pinal Dave
SQL Tips and Tricks
Filestream, SQL Backup and Restore, SQL Data Storage, SQL Server

Set up FileTable prerequisites, create a Windows-accessible file namespace, query stored file metadata, and compare simpler path storage.

Read More
Column names in archive table.

SQL SERVER – Finding Different ColumnName From Almost Identitical Tables

October 18, 2012
Pinal Dave
SQL Tips and Tricks
SQL System Table

A reader had archive and current tables in pairs, but the schemas drifted apart. Here is my way of finding different ColumnName values in almost identical tables.

Read More
A hand holding a steel punch over a new silver spoon on an anvil, ready to stamp its maker's mark.

Audit Columns From Day One: CreatedAt, UpdatedAt and Who Changed It

October 17, 2012
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Constraint and Keys, SQL DateTime, SQL Server, SQL Trigger

Add audit columns with UTC timestamps and trusted change identities, maintain updates in procedures, and know when history is needed.

Read More
A wooden bee hotel of hollow tubes on a garden wall, each tube sealed separately, one bee landing at its own.

A Multi-Tenant Schema With a TenantId Column: Keys, Indexes and Safety

October 16, 2012
Pinal Dave
SQL Tips and Tricks
Schema, SQL Constraint and Keys, SQL Index, SQL Server, SQL Server Security

Design a multi-tenant schema with composite keys, tenant-first indexes, trusted session context, and row-level security checks.

Read More
An empty jaw harp frame beside its removed tongue and a complete instrument

Backing Up msdb: Jobs, History and Mail Live There

October 15, 2012
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server, SQL Server Agent

Your user databases come back, but the jobs and mail setup do not. A short demo of what lives in msdb and how to protect it.

Read More
SQL SERVER - Find First Non-Numeric Character from String

SQL SERVER – Find First Non-Numeric Character from String

October 14, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

No built-in function finds the first non-numeric character in a string, so I use PATINDEX. Here is a quick script with sample data you can try.

Read More
SQL SERVER - 2012 - List All The Column With Specific Data Types in Database

SQL SERVER – 2012 – List All The Column With Specific Data Types in Database

October 13, 2012
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL System Table

An updated SQL Server 2012 script to list every column with specific data types in a database, including user data types, schema and table names.

Read More
Previous 1 … 512 513 514 515 516 517 518 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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