You must present the visa at the immigration desk. This means that you must bring both your old (invalid) passport with the valid visa and your new valid passport. If you cannot find the old passport, you will need to apply for a new visa. See for example About Visas - The Basics at the website of the US State Department:
My old passport has already expired. My visa to travel to the United States is still valid but in my expired passport. Do I need to apply for a new visa with my new passport?
No. If your visa is still valid you can travel to the United States with your two passports, as long as the visa is valid, not damaged, and is the appropriate type of visa required for your principal purpose of travel. (Example: tourist visa, when your principal purpose of travel is tourism). Both passports (the valid and the expired one with the visa) should be from the same country and type (Example: both Uruguayan regular passports, both official passports, etc.). When you arrive at the U.S. port-of-entry (POE, generally an airport or land border) the Customs and Border Protection Immigration Officer will check your visa in the old passport and if s/he decides to admit you into the United States they will stamp your new passport with an admission stamp along with the annotation "VIOPP" (visa in other passport). Do not try to remove the visa from your old passport and stick it into the new valid passport. If you do so, your visa will no longer be valid.
While it is true that the technology exists to check your visa without actually having the sticker in hand, US immigration law hasn't adapted to that reality. Furthermore, the airline will not even allow you to board the plane unless you can show the visa.