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 matching enamel dials side by side in a dark wooden case on a bench

SQL SERVER – AlwaysOn Availability Groups: Script to Sync Logins Between Replicas?

November 30, 2017
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Error Messages, SQL Login, SQL Server, SQL Server Security

A script to sync logins between availability group replicas, keeping the SID so users do not orphan on failover. What to copy and what to check after.

Read More
Loose cords entering a cable comb and leaving with consistent spacing

Collapsing Repeated Spaces and Line Breaks With REGEXP_REPLACE

November 29, 2017
Pinal Dave
SQL Tips and Tricks
Best Practices, Command Line, SQL Server

Tabs, line breaks and a sneaky character 160 can all hide in a name that looks fine. Here is how to clean them on purpose.

Read More
Set autogrowth to maxsize in sql server database.

SQL SERVER – Msg 1105 – Could Not Allocate Space for Object Name in Database ‘DB’ Because the ‘PRIMARY’ Filegroup is Full

November 28, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Scripts, SQL Server

Msg 1105 says SQL Server could not allocate space for an object because the PRIMARY filegroup is full, even with free disk. Here is how to reproduce and fix it.

Read More
Disconnecting connection.

SQL SERVER – AlwaysOn Availability Group Backup fn_hadr_backup_is_preferred_replica Not Working Correctly

November 27, 2017
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Error Messages, SQL High Availability, SQL Server

A client’s backups to the secondary never ran because fn_hadr_backup_is_preferred_replica returned 0 on every node. Here is what I found in its code.

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
TCP Provider network connection status.

SQL SERVER – TCP Provider – An Operation On a Socket Could Not be Performed Because the System Lacked Sufficient Buffer Space or Because a Queue was Full

November 25, 2017
Pinal Dave
SQL Tips and Tricks
Computer Network, SQL Error Messages, SQL Server

Sometimes, I am contacted by blog readers via email and trust me, I get to learn something new. One of my blog reader contacted me for below error about buffer space.

Read More
A stack of bamboo steamer baskets with one tier lifted out and steaming beside it.

Partition Elimination: Proving a Query Reads Only What It Needs

November 24, 2017
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server, Table Partitioning

Prove partition elimination with the actual plan, test date predicates, and use $PARTITION to check which slice SQL Server targets.

Read More
Previous 1 … 141 142 143 144 145 146 147 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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