There is no in-game cheat for unlimited rings in the PC version of Sonic Adventure DX, at least not one that works reliably.
What does exist is external tooling. A memory editor or a trainer for the game can set the ring counter directly, with values up to roughly 32,965,489, and freeze it there so it does not decrease. The same works with the SADX memory editor.
Two caveats are worth stating. These tools modify the game's running memory, so they are for offline single-player use and carry no benefit online. And they are third-party software, so download only from sources you trust and be aware your antivirus may flag a trainer by design.