Dealing with existing data in a separate database
I haven't tested, but I'm about 90% confident that Yii's CActiveRecord is directly coupled to the underlying craft()-&gt;db connection and there isn't a way to change that at runtime.

You're going to be better off going with the method in the answer you linked to and use QueryBuilder.