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
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.
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.
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…
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…
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…
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…
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…
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…
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…