PDA

View Full Version : Database Connections...



grim918
February 28th, 2006, 02:41 AM
I was wondering if it is a good programming habit to connect to two different databases in a single script. I want to create a seperate database which will hold information about failed logins and other types of information such as keeping track of who has viewed certain webpages. I want to keep this information in a separate database, but i don't know if it's a good idea. Will this create any problems, please let me know.

LordHunter317
February 28th, 2006, 02:53 AM
Why in the world you want to keep that in a seperate database?

Applications that connect to two DBs aren't a bad idea per se, but your idea sounds like a rediculously bad one.

The only valid reason I could think of is if the authentication data is shared among multiple applications but the page data is not, in which case, it's perfectly fine.

grim918
February 28th, 2006, 03:07 AM
ok thankz again. I just wondering if that was a good programming habit. Thank you.