Error -2147189176 printing a report which pulls from two different databases

I have a Crystal Report created which pulls data from two different databases. When I try printing it in DRM I’m getting an Error -2147189176: Logon Failed message. In order to print reports with multiple connections within DRM the report will need to be created using a view or a stored proc in the Database A to pull the data from the Database B, so that Database A is accessing all necessary data for the report.