Database access in DLL cause multiple login?

When I do database access within a .DLL, then the database logs in again
(the login dialog is shown and I have to enter a password).

How can I log into the database only once within the calling EXE without
having to do so again within the called DLL?

I would appreciate any ideas...