Click here to Skip to main content
15,902,112 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
How to call C Stored Procedure from C# code directly. There is a work around to call CSP from DB2 SP and call DB2 SP from .Net. But let me know if there is any direct option available.
Thanks.
Posted

Please see: http://support.microsoft.com/kb/310070[^].

(I hope you are using ADO.NET, don't you?)

—SA
 
Share this answer
 
As I understand you have some code written in C and you want to call these functions from C# code.


One way to do it is to build your C code as (.dll) then add that file to your C# references and call the functions you want.

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900