G
Guest
I understand when I add a paramete like (name, value)
p = new SqlParameter("@someINT", 111);
that behind the sceens, a trip to the db is made to derive the parameter.
When creating a parameter what values must be specified to prevent the trip
to the server? For example below the size property is not specified. Does
that mean a trip will occur?
p = new SqlParameter("@RETURN_VALUE", SqlDbType.Int);
p.Direction = ParameterDirection.ReturnValue;
cmd.Parameters.Add(p);
thanks,
p = new SqlParameter("@someINT", 111);
that behind the sceens, a trip to the db is made to derive the parameter.
When creating a parameter what values must be specified to prevent the trip
to the server? For example below the size property is not specified. Does
that mean a trip will occur?
p = new SqlParameter("@RETURN_VALUE", SqlDbType.Int);
p.Direction = ParameterDirection.ReturnValue;
cmd.Parameters.Add(p);
thanks,