Comparing db value to WMI value, something not working ...
One value is from a WMI call to get a computer's physical memory, I place this value in a database, when I run the script again I compare the WMI call value to what is in the database. Im doing this to see if the memory was tampered with. But the values are ALWAYS returning as not equal. Even though they appear to be equal. I checked them and they are both also showing as "numeric". Any suggestions?
Re: Comparing db value to WMI value, something not working ...
Quote:
Originally posted by skid2964
One value is from a WMI call to get a computer's physical memory, I place this value in a database, when I run the script again I compare the WMI call value to what is in the database. Im doing this to see if the memory was tampered with. But the values are ALWAYS returning as not equal. Even though they appear to be equal. I checked them and they are both also showing as "numeric". Any suggestions?
What language are you using, vb, c# etc. Post your code, we might be able to fix your problem.
Try converting both value to same type(e.g. Long) and then compare it.