how to pass output parameter to ms-sql stored procedure using knex

匆匆过客 提交于 2021-01-29 05:01:34

问题


how to pass output parameter to ms-sql stored procedure using knex Query builder.

we are using Knex in node js to call MS-SQL raw query and stored procedure. In MS-SQL, we can pass both IN and OUTPUT parameter in stored procedure. Now, i am stuck, how to pass output parameter to ms-sql stored procedure. Procedure parameter is like this :

exec sp_procedurename 'username',@RecCount OUTPUT,'',1,30,''

回答1:


node-mssql driver has pretty custom syntax for that (https://github.com/tediousjs/node-mssql#execute-procedure-callback). As far as I know that API cannot be accessed through knex.



来源:https://stackoverflow.com/questions/52813209/how-to-pass-output-parameter-to-ms-sql-stored-procedure-using-knex

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!