mercredi 12 octobre 2016

Calling named parameters of a MSSQL stored procedure in laravel 5

I have an existing MSSQL Stored procedure that I need to call in my laravel app. I know that I can use advanced wheres in laravel eloquent, but the client expects that I should be calling that Stored procedure.

I need to call the SP as follows

exec sp_getDepends @Action= 'smn',@DependencyID = 12345

I know that I can use DB:statement but I dont know how to pass the named params.

Can you please help me out with this ?

Thank You



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire