Blog

Page 166 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Saving changes after table edit in SQL Server Management Studio

Saving changes after table edit in SQL Server Management Studio

Published on September 2, 2023

# Saving changes after table edit in SQL Server Management Studio: A Comprehensive Guide šŸ“āœØ If you've ever encountered the error message "Saving changes is not permitted" when trying to save modifications made to a table in SQL Server Management Studio (

Cover Image for Find a value anywhere in a database

Find a value anywhere in a database

Published on September 2, 2023

# šŸ•µļøā€ā™‚ļø Searching for that Needle in a Database Haystack Looking for a specific value in a database can be like searching for a needle in a haystack. It can be tough to figure out where that elusive value might be hiding. But fear not! In this guide, we'

Cover Image for What is the PostgreSQL equivalent for ISNULL()
null

What is the PostgreSQL equivalent for ISNULL()

Published on September 2, 2023

## 🐘 PostgreSQL Equivalent for ISNULL() Function in MS SQL-Server Have you ever encountered a syntax error when trying to use the `ISNULL()` function in PostgreSQL? Fear not! In this blog post, we will address this common issue and provide you with an ea

Cover Image for SQL Case Sensitive String Compare

SQL Case Sensitive String Compare

Published on September 2, 2023

# SQL Case Sensitive String Compare: The Ultimate Guide šŸ˜ŽšŸ”šŸ’¬ Are you tired of dealing with case-insensitive string comparisons in your SQL queries? Do you often run into issues where 'A' is considered equal to 'a'? Don't worry, we've got you covered! In

Cover Image for NULL values inside NOT IN clause
null

NULL values inside NOT IN clause

Published on September 2, 2023

šŸ“ **Blog Post: Understanding NULL Values Inside NOT IN Clause** šŸ”Ž **Common Issue: Different Record Counts for Similar Queries** Have you ever encountered a situation where you run seemingly identical queries, only to receive different record counts? On

Cover Image for Script to kill all connections to a database (More than RESTRICTED_USER ROLLBACK)

Script to kill all connections to a database (More than RESTRICTED_USER ROLLBACK)

Published on September 2, 2023

# How to Kill All Connections to a Database So, you're trying to drop a database but keep getting the pesky error message "Cannot drop database 'MyDB' because it is currently in use." Frustrating, right? But fear not, because I'm here to guide you through

Cover Image for Remove all spaces from a string in SQL Server

Remove all spaces from a string in SQL Server

Published on September 2, 2023

## How to Remove All Spaces from a String in SQL Server 2008 Have you ever found yourself in a situation where you need to remove all spaces from a string in SQL Server 2008? šŸ¤” If so, you've come to the right place! In this blog post, we will address thi

Cover Image for T-SQL: Deleting all duplicate rows but keeping one

T-SQL: Deleting all duplicate rows but keeping one

Published on September 2, 2023

šŸ“š**Title: T-SQL: Deleting Duplicate Rows with Efficiency and Ease** Are you struggling with eliminating duplicate rows in your T-SQL table without risking the loss of important data? We've got you covered! In this blog post, we'll guide you through the p

Cover Image for Storing JSON in database vs. having a new column for each key
mysqloptimization

Storing JSON in database vs. having a new column for each key

Published on September 2, 2023

# Storing JSON in Database vs. Having a New Column for Each Key: Which Is Better? šŸ“ As a developer, you may come across a common problem of deciding how to store user-related data in a database. One option is using JSON format to store all the data in a

Blog | Matheus Mello