Stored Procedures and VB
Posted in 1999
Topics: Stored Procedures & SPL, Server Administration
Hi All
I faced the problem,that I can call some Stored Procedure from unix
shell - " echo 'EXECUTE procedure db_test()' | dbaccess cl_default".
But if I want to call this procedure from our client (Visual Basic) it
gives me an error - "System command cannot be executed"
I will appreciate any help.
Regards
Igor
Hi there.
Open a connection with ADO or RDO using VB to the Informix ODBC driver
execute a statement to that connection object like this:
myADOConnection.Execute "EXECUTE PROCEDURE dbname:db_test()",
lRowsaffected
If it returns values use OpenRecordset instead of the execute method.
Hope this helps
Igor <i.sokolsky@geac.com> wrote in message
news:3794def1.357333410@news.ca.geac.com...
> Hi All
>
> I faced the problem,that I can call some Stored Procedure from unix
> shell - " echo 'EXECUTE procedure db_test()' | dbaccess cl_default".
> But if I want to call this procedure from our client (Visual Basic) it
> gives me an error - "System command cannot be executed"
> I will appreciate any help.
>
>
> Regards
>
>
>
> Igor
Hello,
perhaps your stored procedure issues some unix system comand?
I assume there are some restrictions for that in ODBC standard.
Have a look inside yout stored procedure!
Igor wrote:
> Hi All
>
> I faced the problem,that I can call some Stored Procedure from unix
> shell - " echo 'EXECUTE procedure db_test()' | dbaccess cl_default".
> But if I want to call this procedure from our client (Visual Basic) it
> gives me an error - "System command cannot be executed"
> I will appreciate any help.
>
> Regards
>
> Igor
--
Mit freundlichen Grüßen / with best regards :-)
+===================================Mail-Client: Netscape V4.61=+
| Ernst Sauerwein Siemens ITService GmbH & Co. oHG |
| =============== ISC-D 144 |
| Microsoft Certified OLTP-Systems |
| Professional INFORMIX® Database Support |
| Tel: +49 89 3601 2699 Area South Europe |
| FAX: +49 89 3601 2402 Berliner Str.95,III/C190-193 |
| EMAIL: mailto:ernst.sauerwein@mch.siemens.de |
| EMAIL: mailto:ernsts@informix.com |
| FTP: ftp://ftp.siemens.de/ (external) |
| ftp://MB184060.mch.sni.de/ (internal) |
| WWW: http://its.mch.sni.de/ (external) |
| http://MB184060.mch.sni.de/ (internal) (v private) |
| http://www.stud.uni-muenchen.de/~yaling.mo/Welcome.htm |
+===============================================================+