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
Gap in identity column.

SQL SERVER – Reseed Identity of Table – Table Missing Identity Values – Gap in Identity Column

April 1, 2009
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Index, SQL Scripts, SQL Server DBCC, SQL System Table

Deleted rows left a gap in an identity column for my developer. Here is how to reseed identity of a table so new rows keep the sequence without gaps.

Read More
SELECT FROM SQL PLAN.

SQL SERVER – 2008 – Optimize for Ad hoc Workloads – Advance Performance Optimization

March 21, 2009
Pinal Dave
SQL Performance
Best Practices, SQL Scripts, SQL Stored Procedure, SQL System Table

One time ad hoc plans waste plan cache memory. See how the SQL Server 2008 option optimize for ad hoc workloads keeps them from filling up the cache.

Read More
SQLOutlook, SQL Server, database, file locations.

SQL SERVER – Find Current Location of Data and Log File of All the Database

February 17, 2009
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Security, SQL System Table

A one line query on sys.master_files that shows the current data and log file location for all databases, handy when cleaning up old .mdf and .ldf files.

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

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