|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
I need to know how to call a stored proceedure in MS SQL using PHP on a Windows NT server. I searched the net to find all references to calling one on a Linux server using the PHP functions 'mssql_'. Here is how i do it now: PHP Code:
I need to know how to send a parameter/ variable to the stored proceedure & how to retrieve them back using this method. Any help is appreciated. Cheers. |
|
#2
|
||||
|
||||
|
That's what you need -> http://www.devarticles.com/art/1/667/8
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) Understanding SQL Joins An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries |
|
#3
|
||||
|
||||
|
sorry to bump this old thread, but this is exactly what I need to do and the link given is broken.
|
|
#4
|
||||
|
||||
|
http://www.devarticles.com/c/a/PHP/...m-PHP-on-Linux/
sorry, link wasn't broken, just didn't point to the exact article |
|
#5
|
||||
|
||||
|
Yeah, they seem to have reorganized their site.
Note that this is not the only way of connecting to a remote MSSQL server from Linux. Check http://sourceforge.net/projects/odbtp/ to see an example (which works with Access also). |
|
#6
|
||||
|
||||
|
Okay.. I still need help in getting results from the MSSQL's stored procedures.
I followed the directions in the article and edited and recomplied my PHP source... but I have a question on how to bind variables to my procedure call... they only give one example and I think I need more. I have a stored procedure that returns several rows... how would I bind a result? In the example they just show the binding of a result if just expecting a single integer value. Also, I tried doing the simple thing such as: $dbquery="EXECUTE storedProcedure 'parameter'"; $result = mssql_query($dbquery); But I get timeouts.... |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > PHP MSSQL Syntax for stored proceedures |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|