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
Kill All Processes Diagram.

SQL SERVER – How to Kill All the Processes for Any Database?

January 23, 2018
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Scripts, SQL Server

After a stress test, long queries kept running on a client’s dev server. Here is the script I use to kill all the processes for one particular database.

Read More
Kill Processes Idle.

How to Kill Processes Idle for X Hours? – Interview Question of the Week #152

December 17, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Connection, SQL Cursor, SQL Scripts, SQL Server, System Object

Interview question: how to kill processes idle for X hours in SQL Server? Here is a script that finds idle sessions and kills them.

Read More
SELECT top 3.

SQL SERVER – What is the query used in sp_cursorfetch and FETCH API_CURSOR?

January 10, 2015
Pinal Dave
SQL Tips and Tricks
SQL Cursor

Activity Monitor shows FETCH API_CURSOR instead of the real query? I explain what sp_cursorfetch is and how to find the query running behind the cursor.

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
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
SQL SERVER - Guidelines and Coding Standards Complete List Download

SQL SERVER – Guidelines and Coding Standards Complete List Download

September 25, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Data Warehousing, Database, DBA, SQL Coding Standards, SQL Constraint and Keys, SQL Cursor, SQL Data Storage, SQL Download, SQL Function, SQL Index, SQL Joins, SQL Scripts, SQL Server Security, SQL Stored Procedure, SQL Trigger, SQL Utility

Coding standards and guidelines matter for every developer. Here is my Coding Standards Complete List in one document you can download and follow.

Read More
interview

SQL SERVER – Interview Questions and Answers – Part 2

September 13, 2008
Pinal Dave
SQL Interview Questions and Answers
Data Warehousing, SQL Constraint and Keys, SQL Cursor, SQL Function, SQL Index, SQL Joins, SQL Scripts, SQL Server, SQL Stored Procedure

This is the second part of the blog post series Interview Questions and Answers.Click here to get free chapters (PDF) in the mailbox

Read More
Previous 1 2 3 4 5 6 Next
  • Books
  • Testimonials
  • Privacy Policy

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