Skip to content
Performance Tuning And Infra Automation

I love performance tuning and building automation

  • Home
  • About Me
  • SQL Resources
  • Privacy Policy
  • Contact Me
  • Home
  • About Me
  • SQL Resources
  • Privacy Policy
  • Contact Me
  • facebook.com
  • twitter.com
  • t.me
  • instagram.com
  • youtube.com
Subscribe
  • Home
  • Errors
Error/Fix: Cannot Insert Duplicate Key for UPSERT Code in SQLServer
Posted inErrors TSQL

Error/Fix: Cannot Insert Duplicate Key for UPSERT Code in SQLServer

Posted by By Ajay Dwivedi June 28, 2025
Error/Fix: Cannot Insert Duplicate Key for UPSERT Code in SQLServer
Read More
Msg 924, Level 14, State 1, Line 1
Posted inErrors TSQL

Error/Fix: Msg 924. Get Database Out of Single User Mode

Posted by By Ajay Dwivedi September 23, 2022
Losing single_user database connection is painful, and this script helps to regain the database access by getting database back to multi_user mode.
Read More
find-top-tempdb-space-consumers
Posted inBaseline-SQL-Server Errors SQL Alerts TSQL

Find TempDb Space Consumers in SQL Server

Posted by By Ajay Dwivedi June 19, 2021
Troubleshoot SQL Server tempdb database space issue and find out what sessions are consuming tempdb space.
Read More
Msg 3415, Level 16, State 5, Line 3 Database ‘StackOverflow2010’ cannot be upgraded because it is read-only, has read-only files or the user does not have permissions to modify some of the files. Make the database or files writeable, and rerun recovery.
Posted inErrors

Error/Fix: Database cannot be upgraded because it is read-only or has read-only files

Posted by By Ajay Dwivedi July 26, 2020
Yesterday during my online SQL Server class, I was trying to attach 10 GB size…
Read More
Error - Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server. (.Net SqlClient Data Provider)
Posted inErrors

Error/Fix: Cannot initialize the data source object of OLE DB provider “OraOLEDB.Oracle” for linked server. (.Net SqlClient Data Provider)

Posted by By Ajay Dwivedi February 20, 2020
Recently I was working on one user request to create a linked server for Oracle…
Read More
Error/Fix: There is insufficient system memory in resource pool ‘default’ to run this query.
Posted inErrors

Error/Fix: There is insufficient system memory in resource pool ‘default’ to run this query.

Posted by By Ajay Dwivedi July 7, 2018
Recently I was reading about Temporal Tables feature that has been introduced with SQL Server…
Read More
Error/Fix: Cannot resolve the collation conflict between “Latin1_General_CI_AS” and “SQL_Latin1_General_CP1_CI_AS” in the equal to operation
Posted inErrors TSQL

Error/Fix: Cannot resolve the collation conflict between “Latin1_General_CI_AS” and “SQL_Latin1_General_CP1_CI_AS” in the equal to operation

Posted by By Ajay Dwivedi April 15, 2018
Recently I was working on a SQL query in my inventory database, and was greeted…
Read More
Database Mail Profile using 2-Step Authenticated GMail Account in SQL Server 2016
Posted inErrors

Error/Fix: Database Mails using Gmail getting to Unsent Items

Posted by By Ajay Dwivedi September 10, 2017
Recently I tried to setup Database Mail profile in SQL Server 2016 instance using 2-Step…
Read More
Easy Trick to Debug Long TSQL Codes
Posted inErrors TSQL

Easy Trick to Debug Long TSQL Codes

Posted by By Ajay Dwivedi May 6, 2017
In my previous organization, working as Senior SQL Developer, I was often asked for help…
Read More
Analyzing Deadlock Issues
Posted inErrors Performance Tuning

Analyzing Deadlock Issues

Posted by By Ajay Dwivedi February 21, 2017
I often receive the question - what is the best way to find issues when…
Read More

Posts pagination

1 2 Next page
Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 99 other subscribers
See what other community members think about SQLMonitor.
Recent Posts
  • Get StackOverflow2013 Database for PostgreSQL & SQLServer
  • Error/Fix: Cannot Insert Duplicate Key for UPSERT Code in SQLServer
  • LogRotate Policy For PostgreSQL
  • Run Ansible Playbooks with Github Action
  • SQLServer Gradually Becomes Slow Until Reboot
Facebook With Ajay Dwivedi
Facebook With Ajay Dwivedi

CATEGORIES

  • Ansible 1
  • Baseline-SQL-Server 22
  • Database Administration 11
  • DevOps 1
  • Errors 15
  • Execution Plan 8
  • Growth & Development 2
  • Health Check 8
  • Internals 3
  • Linux 4
  • Performance Tuning 35
  • PostgreSQL 3
  • Powershell 8
  • SQL Alerts 5
  • SQLMonitor 17
  • TSQL 41
Copyright 2025 — Performance Tuning And Infra Automation. All rights reserved. Bloglo WordPress Theme
Scroll to Top