Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

Connection to DB fails, works on dev machine

Im using Delphi 5, CR 9, connecting to a MS SQL Server DB. The application using the Delphi VCL (supplied with CR) to interface to the report. I have a report that is loaded at run time from the Delphi application, then attempts to connect to the DB using OLEDB (ie not ODBC). Works fine on my dev machine, but not the client PC. The client PC gets a "717 - Failed to Load database information".

Some sample code;

oCR.Connect.Clear;
oCR.Connect.ServerName := '100.100.100.1';
oCR.Connect.UserID := 'query';
oCR.Connect.Password := 'queryit';
oCR.Connect.DatabaseName := 'ESCQuery';

oCR.Test <- Fails here.

I've installed all the DLLs I can find, but this is really getting annoying, can anyone help resolve this? Im fairly certain this is a DLL redistribution issue, but after reading seagate's doco on this Im no closer.
 
0
azag
Asked:
azag
  • 3
  • 2
1 Solution
 
mlmccCommented:
It is a DLL issue.

Did you create an installation package or just copy the dlls to the client?

Are the dlls registered on the client?

mlmcc
0
 
azagAuthor Commented:
I've been using Installshield Pro 7 to create an installation package. Have been registering DLLs where I "believe" appropriate. I must admit to being lost as to which should and which should not be registered.

(Even went to the extent of signifying all DLLs as registerable - and living with failed registrations - just to make sure I registered them all).

Believe that I need crdb_ado.dll (which doesnt regsvr32) - but sure which others.

HTH
0
 
mlmccCommented:
Take a look at

http://support.crystaldecisions.com/communityCS/FilesAndUpdates/depends20.zip.asp

It is a dependency walker.  It will show you which dlls are needed.

mlmcc
0
 
azagAuthor Commented:
Thanks,

Although this hasnt really solved my problem - I kind of ran out of time and used a MSM solution (which I didnt want to do), I thank you for your help. If I get more time - the dependency checker might help in future projects.

Azag
0
 
mlmccCommented:
Hope it helps

mlmcc
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now