存储过程使用记录
bigint,int,ntext 不需要指定大小,有多个参数时用逗号。
asp.net 调用
SqlCommand mycomm=new SqlCommand("存储过程",conn);
mycomm.CommandType=CommandType.StoredProduce; //指定command类型为存储过程
SqlParameter para=mycomm.SqlParameter.Add("@para",SqlDbType.bigint,8);//添加参数
para.Value=.. ; //指定参数值
asp.net 调用
SqlCommand mycomm=new SqlCommand("存储过程",conn);
mycomm.CommandType=CommandType.StoredProduce; //指定command类型为存储过程
SqlParameter para=mycomm.SqlParameter.Add("@para",SqlDbType.bigint,8);//添加参数
para.Value=.. ; //指定参数值