Posted by Sean on 12/05/05 15:41
With queries you can get around the problem with:
mssql_query ( $query1, $first_db);
mssql_query ( $query2, $second_db);
But for executes of stored procedures all you have is mixed
mssql_execute ( resource stmt [, bool skip_results] so it uses the
last connection resource opened.
A simple solution would then be to reformat the script so it works
like:
//Open db1
//Do all the db1 stuff
//close db 1
//Open db2
//Do all the db2 stuff
//close db 2
[Back to original message]
|