Category: SQL Server

How to escape single quote in SQL Server?

Today, when I was trying to insert a value to a table in SQL Server which had single quotes, I ended by getting the following error. Unclosed quotation mark after the character string The query …