-1
경우 나 에러가 발생C#을 SQL 쿼리
var sql = String.Format("if ({0} > (select sStrength from yCell where Cell_ID = '{1}')) begin UPDATE yCell SET sStrength = {0} WHERE Cell_ID = '{1}' end", inMaxStrength, inCellID);
SqlCeCommand myCommand = new SqlCeCommand(sql,connection);
myCommand.ExecuteNonQuery();
수행하려고합니다. 실패 이유
분명히 문제가 당신이 그것을 전달하는 것과입니다. 그러나 두 가지 매개 변수를 사용하여 저장 프로 시저를 만드는 것이 좋습니다. 이렇게하는 많은 이유 외에도 더 의미있는 오류를 줄 수 있습니다. – RandomUs1r