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 - 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
Several separate cabinets expose their fittings for inspection beside a plain marker and lens.

SQL SERVER – Validating Unique Column Name Across Whole Database

September 22, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL System Table

A Unique Column Name check lists existing matches across visible database metadata. I use it as an inspection, not an enforcement guarantee.

Read More
SQL Server column information.

SQL SERVER – INFORMATION_SCHEMA.COLUMNS and Value Character Maximum Length -1

July 20, 2012
Pinal Dave
SQL Tips and Tricks
SQL System Table

Why does INFORMATION_SCHEMA.COLUMNS show -1 as the character maximum length? A reader asked me this simple question, and I explain what the negative value means.

Read More
SQL SERVER - Get Schema Name from Object ID using OBJECT_SCHEMA_NAME

SQL SERVER – Get Schema Name from Object ID using OBJECT_SCHEMA_NAME

May 15, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table

Many people join sys.tables and sys.schemas to get a schema name from an object ID. The OBJECT_SCHEMA_NAME function does it in one simple call.

Read More
A harbor seen from above with a grid of mooring buoys, small boats tied to most of them and a few buoys floating empty.

Numbers Table vs GENERATE_SERIES: Building Rows on Demand

February 16, 2012
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Learn numbers table in SQL Server with practical examples, clear checks, common traps, and guidance for your own database.

Read More
A grand piano with its lid raised, showing the strings and hammers inside, one hammer painted red.

Resource Database Quiz: Where Do the System Objects Live?

January 19, 2012
Pinal Dave
SQL Puzzle
SQL Backup and Restore, SQL Server Architecture, SQL System Table, System Database

This Resource Database Quiz asks where SQL Server stores the definition of sys.objects and whether BACKUP DATABASE can protect it. The answer is the hidden Resource database. A tested script shows its version, its date and the system objects every database sees.

Read More
SQL SERVER - Resource Database ID - 32767

SQL SERVER – Resource Database ID – 32767

May 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL System Table

Why does DB_NAME(32767) return NULL? Resource Database ID 32767 belongs to the hidden Resource Database, which you will not find in sys.databases.

Read More
Previous 1 … 5 6 7 8 9 10 11 … 18 Next
  • Books
  • Testimonials
  • Privacy Policy

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