On Thomas Frank's blog there is an interesting post which shows how to get JSON from MySql , and I though about doing the same to SQL Server since I use it more than any other database lately. So what I did was create a stored procedure which uses cursor...