Общие > Базы данных

Передача параметров и запуск процедуры

(1/1)

MrGreeN:
Есть переменная которая передаётся, и должно быть значение возвращаемое после отработки процедуры.
Как это организовать?(MS SQL+PHP)
не так ли:
$con=mssql_connect ( " servername ", " username ","password");
mssql_init (my_proc@value=$value,$con);
$result=mssql_execute ($con);
echo $result;

ThE0ReTiC:
так
[p]mssql_execute[/p]

--- Цитировать ---
if the stored procedure returns parameters or a return value these will be available after the call to mssql_execute() unless the stored procedure returns more than one result set. In that case use mssql_next_result() to shift through the results. When the last result has been processed the output parameters and return values will be available.

--- Конец цитаты ---

MrGreeN:
Thanks...

Навигация

[0] Главная страница сообщений

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 
Перейти к полной версии