I have two queries, first one is the regular SELECT and the other one is an EXEC query as what I mentioned below:
SELECT * FROM [table] WHERE [column] = 'test'
and
EXEC(' SELECT * FROM [table] WHERE [column] = ''test'' ')
as for the results, I tried to execute both queries in sql server 2008 and i was given the exact same outputs, if both queries return the same output then what's the purpose of the single quote and double single quotes in sql?