I am using SQL Server 2008 and want to convert table data into json format. Can I convert it directly through firing query?
Built in support for formatting query results is added in SQL Server 2016 and it will be available in Azure Database. In older versions you would need to use CLR or some heavy TSQL like: