public string GetToken() { string result; SqlParameter[] para = new SqlParameter[] { new SqlParameter("@len", SqlDbType.Int, 1), new SqlParameter("@token", SqlDbType.VarChar, 6) }; para[0].Value = 6; para[1].Value = ""; para[1].Direction = ParameterDirection.Output; operate.ExecuteStoredPro("Pro_Token", para, out result, 1); return(result); }