You haven't provided enough information for us to be able to give you any help.
What database - SAS or non-SAS? How do you want to 'connect' the database in EG - through metadata library definitions, through your own LIBNAME statements, through SQL Passthru....