Skip to content
Performance Tuning And Infra Automation

I love performance tuning and building automation

  • Home
  • About Me
  • All Articles
  • Contact Me
  • Home
  • Pretty Links
  • Privacy Policy
  • SQL Resources
  • facebook.com
  • twitter.com
  • t.me
  • instagram.com
  • youtube.com
Subscribe

Errors

  • 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

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

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

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

Find TempDb Space Consumers in SQL Server

Troubleshoot SQL Server tempdb database space issue and find out what sessions are consuming tempdb space.
Posted by Ajay Dwivedi June 19, 2021
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

Yesterday during my online SQL Server class, I was trying to attach 10 GB size version of StackOverflow database that I used previosly with another instance. When I executed below…
Posted by Ajay Dwivedi July 26, 2020
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)

Recently I was working on one user request to create a linked server for Oracle database in SQL Server 2014 instance. After installing the correct Oracle ODBC drivers, when I…
Posted by Ajay Dwivedi February 20, 2020
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.

Recently I was reading about Temporal Tables feature that has been introduced with SQL Server 2016. So, as usual, I thought to get the knowledge in practice with my virtual…
Posted by Ajay Dwivedi July 7, 2018
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

Recently I was working on a SQL query in my inventory database, and was greeted with below error message:- Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the…
Posted by Ajay Dwivedi April 15, 2018
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

Recently I tried to setup Database Mail profile in SQL Server 2016 instance using 2-Step authenticated GMail account. Even after setting up mail profile as per standard configuration (same as…
Posted by Ajay Dwivedi September 10, 2017
Easy Trick to Debug Long TSQL Codes
Posted inErrors TSQL

Easy Trick to Debug Long TSQL Codes

In my previous organization, working as Senior SQL Developer, I was often asked for help by fellow colleagues for identifying issues inside long and complex TSQL codes. Finding issues becomes…
Posted by Ajay Dwivedi May 6, 2017
Analyzing Deadlock Issues
Posted inErrors Performance Tuning

Analyzing Deadlock Issues

I often receive the question - what is the best way to find issues when client/user complaints of deadlock issues? Msg 1205, Level 13, State 51, Line 10 Transaction (Process…
Posted by Ajay Dwivedi February 21, 2017

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 100 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. Bloghash WordPress Theme
Scroll to Top