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 - Quickest Way to - Kill All Threads - Kill All User Session - Kill All Processes

SQL SERVER – Quickest Way to – Kill All Threads – Kill All User Session – Kill All Processes

February 6, 2009
Pinal Dave
SQL Performance
SQL Scripts, SQL Utility

The quickest way to kill all processes and user sessions in a database: SET SINGLE_USER WITH ROLLBACK IMMEDIATE, then back to MULTI_USER. No cursor needed.

Read More
SQL SERVER - Observation - Effect of Clustered Index over Nonclustered Index

SQL SERVER – Observation – Effect of Clustered Index over Nonclustered Index

February 4, 2009
Pinal Dave
SQL Puzzle
SQL Constraint and Keys, SQL Index, SQL Scripts

An observation from my query optimization work: the effect of clustered index on a nonclustered index, shown with a sample table and execution plans.

Read More
Two upright blue and terracotta pitchers beside two pale sage bowls and a short red cord.

TRY_PARSE: Make the Culture Explicit for Numeric Text

February 3, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

TRY_PARSE needs an explicit culture when punctuation has a specific numeric meaning. I keep that culture beside the source text. A successful conversion alone cannot establish that the intended number was read.

Read More
SQL SERVER - T-SQL Script for FizzBuzz Logic

SQL SERVER – T-SQL Script for FizzBuzz Logic

February 2, 2009
Pinal Dave
SQL Puzzle
SQL Scripts

FizzBuzz is a common interview puzzle: print 1 to 100, with Fizz for multiples of three and Buzz for five. Here is my T-SQL answer using a WHILE loop.

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 - 2008 - 2005 - Rebuild Every Index of All Tables of Database - Rebuild Index with FillFactor

SQL SERVER – 2008 – 2005 – Rebuild Every Index of All Tables of Database – Rebuild Index with FillFactor

January 30, 2009
Pinal Dave
SQL Performance
SQL Cursor, SQL Index, SQL Scripts

A quick script to rebuild every index of all tables in a database with a fillfactor of 80, plus a short note on what fillfactor does to leaf-level pages.

Read More
A stone sea wall with rising seaweed lines from past high tides and hands setting a new stone above them

Estimating Table Growth for Next Year From Backup History

January 29, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Data Storage, SQL Scripts

Estimate table growth with monthly full backup history, a twelve month forecast, and table space checks that separate evidence from guesses.

Read More
Previous 1 … 292 293 294 295 296 297 298 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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