Answers for "call stored procedure in laravel"

PHP
1

how to use stored procedure in laravel

DB::select('exec my_stored_procedure("Param1", "param2",..)');
or

DB::select('exec my_stored_procedure(?,?,..)',array($Param1,$param2));
Try this for without parameters

DB::select('EXEC my_stored_procedure')
Posted by: Guest on November-01-2020
1

Stored Procedures in Laravel

DB::connection("sqlsrv")->statement('exec Pro_Internal_Transfer_Note_post @mvoucherid='.$VMID);
Posted by: Guest on December-28-2020
0

call stored procedure in laravel

Hi
I have something to ask

ADMIN_USER PROCEDURE HAVE THREE INPUT PARAMETER AND ONE OUTPUT PARAMETER
(INPUT PARAMETER) I_ADMIN_ID, I_PWD, I_CONN_IP
(OUTPUT PARAMETER) O_RET_CD

(PHP CODE)
DB::select('EXEC dbo.ADMIN_USER @I_ADMIN_ID = ?, @I_PWD = ?, @I_CONN_IP = ?',[$credentials['user_id'], $credentials['password'], $_SERVER['REMOTE_ADDR']]);

How can I get the output parameters passed?
Posted by: Guest on April-06-2021

Code answers related to "call stored procedure in laravel"

Browse Popular Code Answers by Language