你的意思是用c#调用存储过程了吧!
public static int ExecuteInsertStoreProcedure(SqlParameter[] param,string storeName)
{
int result = 0;
using (SqlConnection con = getConnection())
{
con.Open();
SqlCommand cmd = new SqlCommand(storeName,con);
cmd.CommandType = CommandType.StoredProcedure;
foreach(SqlParameter parm in param)
{
cmd.Parameters.Add(parm);
}
result=cmd.ExecuteNonQuery();
con.Close();
}
return result;
}
CommandType.StoredProcedure;
哈哈 兄弟是不是刚刚学习啊