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
A ring of brass keys on a hook in a corridor of wooden doors, one door ajar with light spilling out

Exploring the System Catalog With Queries

October 2, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Index, SQL Server, SQL System Table

Exploring the system catalog with queries reveals SQL Server objects, columns, indexes, and dependencies without relying on stale diagrams.

Read More
SQL SERVER - Renaming SP is Not Good Idea - Renaming Stored Procedure Does Not Update sys.procedures

SQL SERVER – Renaming SP is Not Good Idea – Renaming Stored Procedure Does Not Update sys.procedures

September 28, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table

Renaming Stored Procedure objects with sp_rename looks fine, but the stored definition keeps the old name, as sp_helptext shows. A quick demo on AdventureWorks.

Read More
SQL SERVER - Find Primary Key Using SQL Server Management Studio

SQL SERVER – Find Primary Key Using SQL Server Management Studio

September 6, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL Scripts, SQL System Table

Need to drop a primary key but do not know the constraint name? Imran Mohammed shows how to find primary key details using SQL Server Management Studio.

Read More
A hand measuring the sleeve of a finished jacket on a dress form with a cloth tape measure

Finding Column Definitions Without the Documentation

August 12, 2008
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Documentation, SQL Server, SQL System Table

Find column definitions in SQL Server with sys.columns, sys.types, and sys.all_columns, including length, nullability, and system objects.

Read More
SQL Query2' results and messages window.

SQL SERVER – Query to Find Column From All Tables of Database

August 6, 2008
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Stored Procedure, SQL System Table

How many AdventureWorks tables have an EmployeeID column? My query on sys.tables and sys.columns finds any column from all tables, with schema names.

Read More
SQL SERVER - 2005 - Get Field Name and Type of Database Table

SQL SERVER – 2005 – Get Field Name and Type of Database Table

August 5, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table

How do you get the field name and type of a table in SQL Server 2005? Imran Mohammed answers with sp_help and an INFORMATION_SCHEMA.COLUMNS query.

Read More
SQL Object Explorer results window.

SQL SERVER – mssqlsystemresource – Resource Database

July 27, 2008
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL System Table

What is mssqlsystemresource? It is the Resource Database, a read only database of system objects that makes upgrading SQL Server much easier.

Read More
Previous 1 … 8 9 10 11 12 13 14 … 16 Next
  • Books
  • Testimonials
  • Privacy Policy

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