We are currently running Navision 3.7 on SQL Server 2000.
I would like to know if it is possible to execute a stored procedure from a Trigger in C/Side?
well you can trigger your stored procedure on insert of a record. From navision all you do is insert a record and it'll trigger your stored procedure.
The other option is use COM object to connect to sql and execute your stored procedure. There are a couple of threads on this subject. Searching would help.
Ahmed Rashed Amini
Independent Consultant/Developer
I think you are telling me how to run Navision Code created with C/Side???
What I want to run a Stored Procedure within "SQL SERVER 2000" not in Navision.
When running a SQL SERVER stored procedure it is executed on the SERVER, when you run a trigger in Navision it is executed on the Client....
So I need to be able to tell SQL Server, from C/SIDE to execute a Stored Procedure that I created in "SQL Server Enterprise Manager".
How do I use ADO? I need detailed explanation of how to execute stored procedure from Navision. I can access my stored procedures through SQL Query Analyzer but I need to execute them from Navision.
Comments
The other option is use COM object to connect to sql and execute your stored procedure. There are a couple of threads on this subject. Searching would help.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
What I want to run a Stored Procedure within "SQL SERVER 2000" not in Navision.
When running a SQL SERVER stored procedure it is executed on the SERVER, when you run a trigger in Navision it is executed on the Client....
So I need to be able to tell SQL Server, from C/SIDE to execute a Stored Procedure that I created in "SQL Server Enterprise Manager".
Thanks,
J.
ADO_Connection.Execute({sp name});
You can pass parameters but if you want return values then you probably will have to use the ADO command object.
Hope this helps.
What do I need to do?
Hope it helps.
Peter Ng