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
A still weaving loom continues to hold unfinished fabric under tension

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
One marked boat is identifiable among several moored boats

How to Identify Session Used by SQL Server Management Studio? – Interview Question of the Week #151

December 10, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Server, SQL Server Management Studio, SQL Stored Procedure

An interview candidate asked us: how do you identify session IDs that SQL Server Management Studio is using? Here is a simple answer with sp_who2.

Read More
The latest peg in one tray is marked while other trays have their own recent pegs

When to Use IDENT_CURRENT? – Interview Question of the Week #150

December 3, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Identity, SQL Scripts, SQL Server

When should you use IDENT_CURRENT instead of SCOPE_IDENTITY()? A question I heard at the Group By conference, answered with the key difference.

Read More
Some temporary sand structures remain while the tide erases others

How Many Temporary Tables are Created So Far in SQL Server? – Interview Question of the Week #149

November 26, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, Temp Table

How many temporary tables are created so far in SQL Server? No DMV gives this directly, but here is an easy workaround to find the answer.

Read More
A divided chute sends two different pigments into separate jars in one operation

How to Assign Multiple Variables in a Single T-SQL Query? – Interview Question of the Week #148

November 19, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server

How do you assign Multiple Variables in a single T-SQL query? Here are three ways, from separate SET statements to my preferred one-line style.

Read More
Blank envelopes pass simple sorting gates, while the mailbox remains farther away

How to Validate Email Address in SQL Server? – Interview Question of the Week #147

November 12, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server

How do you validate an Email Address in SQL Server? Here is a simple query that separates valid addresses from invalid ones in a sample table.

Read More
Temporary sawhorse staging surface in front of permanent workshop shelves

What is WorkTable in SQL Server? – Interview Question of the Week #146

November 5, 2017
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, SQL Scripts, SQL Server, SQL TempDB

What is a WorkTable in SQL Server? Run a simple CROSS JOIN with STATISTICS IO on and you will see one. Here is what it is and why SQL Server creates it.

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

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