Code:
SqlParameter shipperIDParameter = new SqlParameter("@ShipperID", SqlDbType.Int);
shipperIDParameter.Direction = ParameterDirection.Output; insertCommand.Parameters.Add(shipperIDParameter);
SqlParameter shipperIDParameter = new SqlParameter("@ShipperID", SqlDbType.Int);
shipperIDParameter.Direction = ParameterDirection.Output; insertCommand.Parameters.Add(shipperIDParameter);
INSERT INTO tblOrders (custname, custdetails, orderdate) VALUES (@custname, @custdetails, @orderdate)
Leave a comment: