Issue executing stored procedure from PHP to a Microsoft SQL SERVER

前端 未结 4 1939
刺人心
刺人心 2021-01-20 17:42

I am using the code igniter framework. And I been trying to execute a stored procedure(no params) I wrote on Microsoft SQL Server 2008 from PHP but i get an error . This sto

4条回答
  •  我在风中等你
    2021-01-20 18:28

    I also had the similar issue while connecting to MS SQL Server 2008 using sqlsrv driver. My issue was resolved using the following code:

    $result = $this->db->query("PROCEDURE_NAME {$param_1}, {$param_2}")
                       ->result_array();
    

    I have this helps someone out there =]

提交回复
热议问题