|
Home > Archive > Microsoft SQL Server forum > January 2006 > Can I use stored procedures with PHP via ODBC bridge?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Can I use stored procedures with PHP via ODBC bridge?
|
|
| gene.ellis@gmail.com 2006-01-18, 1:23 pm |
| Hey Everyone,
I am a stored procedures newbie, so I wanted to ask if it is possible
to use them with PHP via an ODBC-ODBC bridge connected to a MS SQL
server. I am simply use the commands from the php odbc library to
connect and execute the SQL commands, I am trying to avoid building
dynamic queries, so stored proceddures seem to be the answer. I know
that there are only certain environments stored procedures can be used
within. Thank you for all of your help.
| |
| Toke Herkild 2006-01-19, 3:24 am |
| Storedprocs can be started through queries which should not bring any
problems in using them with PHP, but test it.
I don't know how the query_resource (return value) is handled in a
Stored proc but I believe any return values wll be returned in fieldlike
structures.
Anyway thats how it works in Pascal...
Working in PHP&MySQL platforms haven't given me the opportunity to test
that functionality in PHP.
Regards,
Toke Herkild
gene.ellis@gmail.com wrote:
> Hey Everyone,
>
> I am a stored procedures newbie, so I wanted to ask if it is possible
> to use them with PHP via an ODBC-ODBC bridge connected to a MS SQL
> server. I am simply use the commands from the php odbc library to
> connect and execute the SQL commands, I am trying to avoid building
> dynamic queries, so stored proceddures seem to be the answer. I know
> that there are only certain environments stored procedures can be used
> within. Thank you for all of your help.
>
| |
| robertino 2006-01-20, 7:23 am |
| Yes, it it is possible, and works OK.
Check out the latest PHP manual ==> Function Reference ==> Microsoft
SQL Server Functions ==> mssql_execute().
HTH,
Rob
|
|
|
|
|