You can call a stored procedure from C# using ADO.NET. Here's an example of how to call a stored procedure where the input is a first name and the output is a last name, and then concatenate them to get the full name:
main.cs1093 chars32 lines
Note that you'll need to replace "YourStoredProcedureName" with the actual name of your stored procedure, and "John" with the actual first name that you want to pass as input. And make sure that the data types and sizes of the input and output parameters match those defined in your stored procedure.
gistlibby LogSnag