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 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 - FIX : ERROR : Msg 5834, Level 16, State 1, Line 1 The affinity mask specified conflicts with the IO affinity mask specified. Use the override option to force this configuration

SQL SERVER – FIX : ERROR : Msg 5834, Level 16, State 1, Line 1 The affinity mask specified conflicts with the IO affinity mask specified. Use the override option to force this configuration

January 31, 2009
Pinal Dave
SQL Performance
SQL Error Messages, SQL Index, SQL Scripts, SQL Stored Procedure

Msg 5834 says the affinity mask conflicts with the IO affinity mask when you change fill factor with sp_configure. The fix is RECONFIGURE WITH OVERRIDE.

Read More
SQL Server performance query results.

SQL SERVER – Find Number of Rows and Disk Space Reserved – Using sp_spaceused Interesting Observation

January 14, 2009
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Function, SQL Scripts, SQL Server DBCC, SQL Stored Procedure, SQL Utility

sp_spaceused shows the row count of a table and the disk space reserved. Here is why its numbers looked wrong on AdventureWorks and how @updateusage fixed them.

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

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

January 2, 2009
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL Server DBCC, SQL Stored Procedure

My company owner asked which query runs longest and I found no ready script, so I wrote one: the Longest Running Query with its average and maximum time.

Read More
A weather vane with a red rooster turning with the wind on a barn roof

Rolling Date Ranges Forward Without Hard-Coded Years

January 1, 2009
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL DateTime, SQL Server, SQL Stored Procedure

Replace hard-coded years with indexed date ranges for current periods, full months, year-to-date comparisons, and any requested year.

Read More
SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database Including Schema

SQL SERVER – Simple Use of Cursor to Print All Stored Procedures of Database Including Schema

November 22, 2008
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Stored Procedure

An improved script to print all stored procedures of database, now with schema names. Jerry Hung’s cursor uses sys.all_objects and sp_HelpText.

Read More
SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database

SQL SERVER – Simple Use of Cursor to Print All Stored Procedures of Database

November 20, 2008
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Scripts, SQL Stored Procedure

A simple cursor with sp_HelpText can print all stored procedures of your database. Switch results to text view with CTRL+T to read them easily.

Read More
Previous 1 … 20 21 22 23 24 25 26 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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