ALTER PROCEDURE InsertHash
@FileName varchar(max),
@Hash varchar(max)
AS
UPDATE tabletest
SET deneme1 = @Hash, deneme2 =@FileName
これは私のストアド プロシージャで、いくつかのデータを送信します
while (rdr.Read())
{
string filename = @"\\" + rdr.GetString(3);
filename = System.IO.Path.Combine(filename, rdr.GetString(2));
filename = System.IO.Path.Combine(filename, rdr.GetString(1));
computeHashh1 abc = new computeHashh1();
Console.WriteLine(abc.computeHash(filename));
SqlCommand myCommand2 = new SqlCommand("InsertHash", myConnection);
myCommand2.CommandType = CommandType.StoredProcedure;
SqlParameter param = new SqlParameter("@FileName", filename);
myCommand2.Parameters.Add(param);
SqlParameter param2 = new SqlParameter("@Hash", abc.computeHash(filename));
myCommand2.Parameters.Add(param2);
}
コードを実行してもテーブルが更新されない