日期:2014-05-17 浏览次数:20652 次
public static string getMyAndRoom(int id,string guidkey,int jRoomId)
{
string p_name = "getMyAndRoom";
SqlParameter[] parameters = { new SqlParameter("@id", id),
new SqlParameter("@guidkey",guidkey),
new SqlParameter("@jRoomId",jRoomId),
new SqlParameter("@userName",SqlDbType.NVarChar,30),
new SqlParameter("@qqImg",SqlDbType.VarChar,600),
new SqlParameter("@roomName",SqlDbType.NVarChar,30),
new SqlParameter("@bgImg",SqlDbType.VarChar,360),
new SqlParameter("@sex",SqlDbType.Bit),
new SqlParameter("@jRoomName",SqlDbType.NVarChar,30),
new SqlParameter("@jRoomBgImg",SqlDbType.VarChar,360),
new SqlParameter("@jRoomqqImg",SqlDbType.VarChar,200)};
parameters[3].Direction = ParameterDirection.Output;
parameters[4].Direction = ParameterDirection.Output;
parameters[5].Direction = ParameterDirection.Output;
parameters[6].Direction = ParameterDirection.Output;
parameters[7].Direction = ParameterDirection.Output;
parameters[8].Direction = ParameterDirection.Output;
parameters[9].Direction = ParameterDirection.Output;
parameters[10].Direction = ParameterDirection.Output;
DataSet ds = DbHelperSQL.RunProcedure(p_name, parameters, "getMyAndRoom");
if (id != 0)
public SqlParameter(
string parameterName,
SqlDbType dbType,
int size,
ParameterDirection direction,
bool isNullable,
byte precision,
byte scale,
string sourceColumn,
DataRowVersion sourceVersion,
Object value
)