You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE REQUEST] JSON Data Type support for Stored Procedure parameters #1682
Is your feature request related to a problem? If so, please give a short summary of the problem and how the feature would resolve it
All versions of MSSQL now support JSON data type. There is no TYPE.JSON in Tedious or support to leverage this and pass JSON objects using this native type instead of as varchar/nvarchar.
Describe the preferred solution
Addition of JSON data type for the parameters that correctly serializes a JSON object to SQL Server when calling a stored procedure.
Describe alternatives you've considered
I've considered writing the PR myself but don't have any experience with Tedious code-base. The other alternatives are to continue to use varchar/nvarchar types and manually serialize and re-parse within an SP at the server...none of these are great options.
For anyone that's curious, I wrote up the below example of how support for the Json data type on stored procedures could be accomplished without waiting on Tedious team to integrate this PR. This will work with the node-mssql library as an interim solution.
Activity
matthewerwin commentedon Mar 21, 2025
For anyone that's curious, I wrote up the below example of how support for the Json data type on stored procedures could be accomplished without waiting on Tedious team to integrate this PR. This will work with the node-mssql library as an interim solution.