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
Two repeated runs of five work aprons and two rest scarves on a clothesline

How to Count Week Days Between Two Dates? – Interview Question of the Week #132

July 23, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Scripts, SQL Server

How do you count Week Days between two dates in SQL Server? Here is a short script I built from scratch using spt_values and DATEPART.

Read More
Saddle stirrups connected to one rail by different leather straps

Finding Which Network Protocol Each Session Uses

July 22, 2017
Pinal Dave
SQL Tips and Tricks
Best Practices, Computer Network, SQL Server

Before you switch off a protocol, find out who still uses it. Two short queries show how each session connected, and why the address is not a person.

Read More
SQL SERVER - Invalid Object Name 'master.dbo.spt_values' in Management Studio

SQL SERVER – Invalid Object Name ‘master.dbo.spt_values’ in Management Studio

July 21, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server Management Studio, SQL System Table

A client ran U_tables.sql from the Install folder by hand and then hit Invalid Object Name ‘master.dbo.spt_values’ in Management Studio. Here is why.

Read More
Shareable network link dialog.

SQL SERVER – Can I Delete Always On Availability Groups Initial Sync Folder?

July 20, 2017
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Server

Can you delete the shared folder used for the initial sync of Always On availability groups? A client asked, and yes, you can remove it without any impact.

Read More
Incrementing Number.

SQL SERVER – Interesting Observation – Count of Temporary Table Re-generations

July 19, 2017
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Management Studio, Temp Table

A workshop attendee asked how to know the count of temporary table re-generations for a single temp table. Here is how I find it.

Read More
SQL SERVER - How to See Scripts Executing in sp_executesql?

SQL SERVER – How to See Scripts Executing in sp_executesql?

July 18, 2017
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure

How can you see the scripts executing in sp_executesql without an extra SELECT result set? A reader asked me, and here is the simple answer.

Read More
A children's play table with four drawing places and one shared tin of crayons, a small hand taking red.

Azure SQL Elastic Pools: Sharing Resources Across Many Databases

July 18, 2017
Pinal Dave
SQL Tips and Tricks
Cloud Computing, SQL Azure, SQL Server

Evaluate Azure SQL elastic pools using overlapping database demand, pool limits, per-database bounds, and measured workload performance.

Read More
Previous 1 … 162 163 164 165 166 167 168 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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