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
A garden snail carries its shell from one wet stepping stone to the next, a silver trail behind it.

Contained Databases and Contained Users

February 5, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Login, SQL Migration, SQL Server Security

Understand contained users in SQL Server databases, how they travel with a database, and the security trade-offs of partial containment.

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
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
Previous 1 … 716 717 718 719 720 721 722 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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