Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sqlexec -- determing success
Message
From
15/02/2000 17:14:41
 
 
To
15/02/2000 14:25:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00332223
Message ID:
00332546
Views:
15
>
>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
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform