SqlCommand cmd = new SqlCommand("GetOrdersInfo",myConn);
= CommandType.StoredProcedure;
如果没有第二句,则说明GetOrdersInfo是表,有 = CommandType.StoredProcedure;则说明GetOrdersInfo是存储过程名.
= CommandType.StoredProcedure;
如果没有第二句,则说明GetOrdersInfo是表,有 = CommandType.StoredProcedure;则说明GetOrdersInfo是存储过程名.