Reply to Re: SQL Stored Procedure from PHP

Your name:

Reply:


Posted by Steve on 11/17/05 11:34

> I'm trying to execute a SQL stored procedure from PHP like so:

> $sql = "exec ('usp_Locations_Sel 5065')";

> However, any procedure that returns a result set doesn't make it back
> to PHP.

Not sure what you mean by "doesn't make it back". Do you get a PHP
error or is your $result empty or something else?

One possibility is that your stored proc is trying to return more than
one resultset - usually because it is returning the number of rows
affected as a second resultset. The PHP API doesn't handle this. To
stop it, in the stored proc add this line before the start of your
code:

SET NOCOUNT ON

---
Steve

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация