Skip to content
Advertisement

php ms sql server stored procedure return json string max 2034

PHP reads just 2034 characters from the returned JSON string value from stored procedure “sp_test”. Why just 2034 characters and not more?

Using PHP Version 5.6.31 with SQL Express 2017

JavaScript

Stored Procedure “sp_test”:

JavaScript

Formatted result:

JavaScript

Advertisement

Answer

Found the issue

JavaScript

I thought i get the whole string in one row but i have to merge it.Like this:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement