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 - List All Server Wide Configurations Values

SQL SERVER – List All Server Wide Configurations Values

February 16, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table

I forgot the syntax to check the two digit year cutoff, so I listed all Server Wide Configurations with sys.configurations. A small script worth saving.

Read More
An open folding pocket tool on a wooden table with a knife, screwdriver, small saw and awl fanned out

Using sp_help and Friends to Explore a Database

February 1, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server, SQL Stored Procedure, SQL System Table

Using sp_help, sp_helpindex, sp_helptext, and sp_spaceused gives a quick SQL Server tour before you reach for catalog views.

Read More
SQL SERVER - 2008 - 2005 - Find Longest Running Query - TSQL - Part 2

SQL SERVER – 2008 – 2005 – Find Longest Running Query – TSQL – Part 2

January 23, 2009
Pinal Dave
SQL Performance
Best Practices, SQL Scripts, SQL Server DBCC, SQL System Table

An updated script to find the longest running query in SQL Server 2005 and 2008, with the divide by zero error fixed and time now shown in milliseconds.

Read More
Set ROWCOUNT Option in SQL Server Management Studio.

SQL SERVER – Find Row Count in Table – Find Largest Table in Database – T-SQL

January 13, 2009
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL System Table, SQL Utility

A quick script using sys.dm_db_partition_stats that lists the row count of every table and shows the largest table in database right at the top.

Read More
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
Previous 1 … 9 10 11 12 13 14 15 … 18 Next
  • Books
  • Testimonials
  • Privacy Policy

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