我想问问这两种方式哪种效率高点,能差多少?比如执行同样的事情,可以是command自己执行
++++++++++++++++++++++++
            SqlCommand sq_com = new SqlCommand();
            sq_com.CommandText = "update aspnet_membership set customName=@customname,customNo=@customno,userlimit=@userlimit,username=@username where userid=(select top 1 userid from aspnet_users where username=@username)";
            sq_com.Parameters.Add("@customname", SqlDbType.VarChar).Value = DDL_company.SelectedItem.ToString();
            sq_com.Parameters.Add("@customno", SqlDbType.VarChar).Value = DDL_company.Text;
            sq_com.Parameters.Add("@userlimit", SqlDbType.VarChar).Value = LimitString;
            sq_com.Parameters.Add("@username", SqlDbType.VarChar).Value = str_NewUserName; 
            int re=sq_com.ExecuteNonQuery()这是自己执行,还有种方法:
+++++++++++++++++++++++++
da.selectcommand.commandtext = "nameofprocedure";  
da.selectcommand.commandtype = commandtype.storedprocedure;  
这是调用SQL里边内置的存储过程。请问这两种方法哪个效率高点,效率相差多吗?谢谢。