>
>create procedure sp_sql_passthrough @sql_string Varchar(255),
>@no_of_rows INT OUTPUT
>AS
>EXEC(@sql_string)
>SELECT @no_of_rows=@@rowcount
>
>
>ln_success=sqlexec(vn_conn_handle,[execute sp_sql_passthrough 'update tb set c1="a"',?ioutput])
>
>
The call is wrong. You need to pass
ioutput by reference with @. It should look like:
lnSuccess = SQLEXEC(..., ?@ioutput ...)
-Mike