Calling a SQLServer stored procedure
I'm trying to call a SQLServer stored procedure. There is a parameter list that needs to be built. The code below doesn't work but am looking for working examples of calling SQLServer stored procedures. Does anyone have any examples of how to accomplish the task?
c.Parameters.Add(new SqlParameter("p_Curr_Year", System.Data.SqlTypes.Integer, 4, "HID"));
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

mikerRank #2,843 · 502 pointsPosted Mar 25, 2005, 8:02 AM EST
k_m_ken_zimmerman30 pointsPosted May 10, 2005, 12:52 PM EDT