Visual C# Code:
SqlDataAdapter myAdapter; myCommand.CommandText = "tên stored procedure"; myCommand.CommandType = CommandType.StoredProcedure; myCommand.Connection = myCon; //truyền tham số cho procedure, nhớ tên tham số ở đây phải giống với tên trong stored tại sql //bao nhiêu tham số thì add vào như vậy myCommand.Parameters.AddWithValue("@parametername", "value"); //muốn đổ dữ liệu vào đâu thì bước tiếp theo dùng adapter để đổ vào thôi
Nhớ chịu khó tìm kiếm trên forum chút xíu. Mấy cái này đã nói khá nhiều rồi, trên đó chỉ là mô tả sơ sơ, muốn có phương thức xài hay hơn thì tìm kiếm trong diễn đàn đi, trong mục database với C# đó, có bài hướng dẫn khá hay.