Answers for "how to use 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

Code answers related to "how to use stored procedure in laravel"

Browse Popular Code Answers by Language