SQL Server QUOTENAME Function
SQL Server QUOTENAME Function is a SQL function in the SQL Server Specific category. SQL Server: adds delimiters around identifiers. Essential for dynamic SQL to prevent injection via object names. It accepts see syntax. It returns quoted identifier. A close relative is OUTPUT Clause, which sQL Server: returns values from DML statements (like PostgreSQL RETURNING). A close relative is STUFF(), which sQL Server: deletes a specified length of characters from a string and inserts another string at the start position. A close relative is FOR XML PATH, which sQL Server: converts query results to XML format. Commonly used for string concatenation hack. More about this category: SQL Server-specific features — T-SQL, OUTPUT, TOP, PIVOT, STUFF, FOR XML. Related SQL Server Specific entries: OUTPUT Clause, STUFF(), FOR XML PATH, TRY...CATCH, @@IDENTITY / SCOPE_IDENTITY(), GETDATE() / SYSDATETIME(), STRING_SPLIT(), TOP ... WITH TIES.