One shouldn't even have to mess with $db_url .&nbsp; I have a bunch of modules which use db_set_active() successfully in Drupal 4.7 and none touch $db_url.&nbsp; Most of my code looks something like this:<br><br>$previousdb = db_set_active('mydb');
<br>$result = pager_query($sql, $limit, 0, NULL);<br>// handle results<br>db_set_active($previousdb);<br><br>Morbus, are you finding that your code doesn't function correctly without tweaking the global $db_url?&nbsp; Seems like something might be broken, if so.
<br>