Storing JSON in an msSQL database?

前端 未结 7 806
难免孤独
难免孤独 2020-12-28 15:38

I\'m developing a form generator, and wondering if it would be bad mojo to store JSON in an SQL database?

I want to keep my database & tables simple, so I was go

7条回答
  •  余生分开走
    2020-12-28 16:07

    I think it not an optimal idea to store object data in a string in SQL. You have to do transformation outside of SQL in order to parse it. That presents a performance issue and you lose the leverage of using SQL native data parsing capability. A better way would be to store JSON as an XML datatype in SQL. This way, you kill two birds with one stone: You don't have to create shit load of tables and still get all the native querying benefits of SQL.

    XML in SQL Server 2005? Better than JSON in Varchar?

提交回复
热议问题